lib/esp/extensions/active_resource/dirty.rb
def load(attributes, _remove_root = false, persisted = false)
    if persisted
      super.tap do |object|
        object.original_attributes = object.attributes
      end
    else
      super
    end
  end
# After sending to the API the object is reloaded with its attributes
# The persisted flag tells us it has been saved
After sending to the API the object is reloaded with its attributes
The persisted flag tells us it has been saved
After sending to the API the object is reloaded with its attributes The persisted flag tells us it has been saved
def load(attributes, _remove_root = false, persisted = false)
    if persisted
      super.tap do |object|
        object.original_attributes = object.attributes
      end
    else
      super
    end
  end
def load ( attributes , _remove_root = false , persisted = false ) if persisted super . tap do | object | object . original_attributes = object . attributes end else super end end
After sending to the API the object is reloaded with its attributes
The persisted flag tells us it has been saved
After sending to the API the object is reloaded with its attributes The persisted flag tells us it has been saved
attributes
_remove_root
persisted