aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping.rb
diff options
context:
space:
mode:
authorKeenan Brock <kbrock@redhat.com>2014-01-22 12:55:46 -0500
committerKeenan Brock <kbrock@redhat.com>2014-01-22 13:47:34 -0500
commit8cbd500035aa64a5440d5ccc44209cfd902118fc (patch)
tree1b18f85e6239e96f230ab71a6c6e92978012df9c /activerecord/lib/active_record/scoping.rb
parent72403003085ff6413ddf53e34561175e3dd68168 (diff)
downloadrails-8cbd500035aa64a5440d5ccc44209cfd902118fc.tar.gz
rails-8cbd500035aa64a5440d5ccc44209cfd902118fc.tar.bz2
rails-8cbd500035aa64a5440d5ccc44209cfd902118fc.zip
Move changed_attributes into dirty.rb
Move serialization dirty into serialization.rb
Diffstat (limited to 'activerecord/lib/active_record/scoping.rb')
-rw-r--r--activerecord/lib/active_record/scoping.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/scoping.rb b/activerecord/lib/active_record/scoping.rb
index 0cf3d59985..3e43591672 100644
--- a/activerecord/lib/active_record/scoping.rb
+++ b/activerecord/lib/active_record/scoping.rb
@@ -27,6 +27,11 @@ module ActiveRecord
end
end
+ def initialize_internals_callback
+ super
+ populate_with_current_scope_attributes
+ end
+
# This class stores the +:current_scope+ and +:ignore_default_scope+ values
# for different classes. The registry is stored as a thread local, which is
# accessed through +ScopeRegistry.current+.