app/models/piggybak/country.rb in piggybak-0.2.1 vs app/models/piggybak/country.rb in piggybak-0.3.0
- old
+ new
@@ -1,5 +1,8 @@
module Piggybak
class Country < ActiveRecord::Base
has_many :states
+
+ scope :shipping, where(:active_shipping => true)
+ scope :billing, where(:active_billing => true)
end
end