module ArSync::ModelBase::ClassMethods::WriteHook
Public Instance Methods
_initialize_sync_info_before_mutation()
click to toggle source
# File lib/ar_sync/class_methods.rb, line 114 def _initialize_sync_info_before_mutation self.class.default_scoped.scoping do @_sync_watch_values_before_mutation ||= _sync_current_watch_values @_sync_parents_info_before_mutation ||= _sync_current_parents_info @_sync_belongs_to_info_before_mutation ||= _sync_current_belongs_to_info end end
_write_attribute(attr_name, value)
click to toggle source
Calls superclass method
# File lib/ar_sync/class_methods.rb, line 121 def _write_attribute(attr_name, value) _initialize_sync_info_before_mutation super attr_name, value end
write_attribute(attr_name, value)
click to toggle source
Calls superclass method
# File lib/ar_sync/class_methods.rb, line 125 def write_attribute(attr_name, value) _initialize_sync_info_before_mutation super attr_name, value end