Module: DynamicFields::ActiveRecord

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

Instance Method Summary collapse

Instance Method Details

#dynamic_field_changesObject



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

def dynamic_field_changes
  @dynamic_field_changes ||= {}
end

#reloadObject



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

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