module InstantiateWithOriginalAttributes
Set the original attributes every time we instantiate an object from the api This happens on GET requests
Private Instance Methods
instantiate_record(record, _prefix_options = {})
click to toggle source
Calls superclass method
# File lib/esp/extensions/active_resource/dirty.rb, line 23 def instantiate_record(record, _prefix_options = {}) super(record, _prefix_options = {}).tap do |object| object.original_attributes = object.attributes end end