module Acfs::Resource::Dirty
Thin wrapper around ActiveModel::Dirty
Public Instance Methods
loaded!()
click to toggle source
@api private
Calls superclass method
# File lib/acfs/resource/dirty.rb, line 25 def loaded! reset_changes super end
reset_changes()
click to toggle source
@api private
# File lib/acfs/resource/dirty.rb, line 13 def reset_changes clear_changes_information end
save!(**kwargs)
click to toggle source
@api private
Calls superclass method
# File lib/acfs/resource/dirty.rb, line 19 def save!(**kwargs) super(**kwargs).tap {|_| changes_applied } end
write_raw_attribute(name, value, opts = {})
click to toggle source
@api private
Calls superclass method
# File lib/acfs/resource/dirty.rb, line 32 def write_raw_attribute(name, value, opts = {}) attribute_will_change!(name) if opts[:change].nil? || opts[:change] super end