Method: Countrizable::Persistence#_update_record
- Defined in:
- lib/patches/active_record/persistence.rb
#_update_record(attribute_names = self.attribute_names) ⇒ Object
Updates the associated record with values matching those of the instance attributes. Returns the number of affected rows.
5 6 7 8 |
# File 'lib/patches/active_record/persistence.rb', line 5 def _update_record(attribute_names = self.attribute_names) attribute_names_without_country_attributed = attribute_names.select{ |k| not respond_to?('country_attributed?') or not country_attributed?(k) } super(attribute_names_without_country_attributed) end |