lib/active_remote/persistence.rb in active_remote-2.3.1 vs lib/active_remote/persistence.rb in active_remote-2.3.2
- old
+ new
@@ -127,10 +127,10 @@
# Instantiate a record with the given remote attributes. Generally used
# when retrieving records that already exist, so @new_record is set to false.
#
def instantiate(record)
skip_dirty_tracking do
- assign_attributes(record)
+ assign_attributes(record, :without_protection => true)
end
# TODO: figure out how to safely run after_find/search callbacks here
# currently, several functions use this code path, so an alternate path
# may need to be added