app/models/piggybak/address.rb in piggybak-0.5.5 vs app/models/piggybak/address.rb in piggybak-0.6.0
- old
+ new
@@ -13,10 +13,13 @@
validates_presence_of :country_id
validates_presence_of :zip
after_initialize :set_default_country
after_save :document_address_changes
-
+
+ attr_accessible :firstname, :lastname, :address1, :location,
+ :address2, :city, :state_id, :zip, :country_id
+
def set_default_country
self.country ||= Country.find_by_abbr(Piggybak.config.default_country)
end
def admin_label