Module: PersistedAttributes::ActiveRecord

Extended by:
ActiveSupport::Concern
Defined in:
lib/persisted_attributes/active_record.rb

Instance Method Summary collapse

Instance Method Details

#peresisted_attribute_changesObject



37
38
39
# File 'lib/persisted_attributes/active_record.rb', line 37

def peresisted_attribute_changes
  @peresisted_attribute_changes ||= {}
end

#reloadObject



41
42
43
# File 'lib/persisted_attributes/active_record.rb', line 41

def reload(*)
  super.tap { @peresisted_attribute_changes = nil }
end