Method: ActiveModel::ForcedMutationTracker#force_change
- Defined in:
- activemodel/lib/active_model/attribute_mutation_tracker.rb
#force_change(attr_name) ⇒ Object
121 122 123 |
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 121 def force_change(attr_name) forced_changes[attr_name] = clone_value(attr_name) unless attribute_changed?(attr_name) end |