Module: ActiveRecord::Persistence
- Defined in:
- lib/spree/core/ext/active_record.rb
Instance Method Summary collapse
-
#update_attributes_without_callbacks(attributes) ⇒ Object
Update attributes of a record in the database without callbacks, validations etc.
Instance Method Details
#update_attributes_without_callbacks(attributes) ⇒ Object
Update attributes of a record in the database without callbacks, validations etc.
4 5 6 7 |
# File 'lib/spree/core/ext/active_record.rb', line 4 def update_attributes_without_callbacks(attributes) self.assign_attributes(attributes) self.class.where(:id => id).update_all(attributes) end |