lib/active_remote/base.rb in active_remote-1.5.4 vs lib/active_remote/base.rb in active_remote-1.5.5
- old
+ new
@@ -34,11 +34,13 @@
define_model_callbacks :initialize, :only => :after
def initialize(*)
@attributes ||= {}
- run_callbacks :initialize do
- super
+ skip_dirty_tracking do
+ run_callbacks :initialize do
+ super
+ end
end
end
def freeze
@attributes.freeze; self