Sha256: 56165472a504ba7f128f2a0fc4e3930a824a82edf0175b783be369f6f94c7592

Contents?: true

Size: 261 Bytes

Versions: 56

Compression:

Stored size: 261 Bytes

Contents

module Piggybak
  class Country < ActiveRecord::Base
    attr_accessible :name, :abbr
    has_many :states

    scope :shipping, where(:active_shipping => true)
    scope :billing, where(:active_billing => true)
    default_scope :order => 'name ASC'
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
piggybak-0.6.8 app/models/piggybak/country.rb
piggybak-0.6.7 app/models/piggybak/country.rb
piggybak-0.6.6 app/models/piggybak/country.rb
piggybak-0.6.5 app/models/piggybak/country.rb
piggybak-0.6.4 app/models/piggybak/country.rb
piggybak-0.6.3 app/models/piggybak/country.rb
piggybak-0.6.2 app/models/piggybak/country.rb
piggybak-0.6.1 app/models/piggybak/country.rb
piggybak-0.6.0 app/models/piggybak/country.rb
piggybak-0.5.5 app/models/piggybak/country.rb
piggybak-0.5.4 app/models/piggybak/country.rb
piggybak-0.5.3 app/models/piggybak/country.rb
piggybak-0.5.2 app/models/piggybak/country.rb
piggybak-0.5.1 app/models/piggybak/country.rb
piggybak-0.5.0 app/models/piggybak/country.rb
piggybak-0.4.39 app/models/piggybak/country.rb
piggybak-0.4.38 app/models/piggybak/country.rb
piggybak-0.4.37 app/models/piggybak/country.rb
piggybak-0.4.36 app/models/piggybak/country.rb
piggybak-0.4.35 app/models/piggybak/country.rb