diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2014-01-22 13:44:11 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2014-01-22 13:44:11 -0800 |
commit | 6ef0569b0bf6e13d63f6c51790745b2007b92973 (patch) | |
tree | 7c46e5d8d4a89b89b494a237b8abdf512adb16f4 /activerecord/lib/active_record/scoping.rb | |
parent | 0d24946903853e09fce1824d28d3ad7b210b71b5 (diff) | |
parent | 8cbd500035aa64a5440d5ccc44209cfd902118fc (diff) | |
download | rails-6ef0569b0bf6e13d63f6c51790745b2007b92973.tar.gz rails-6ef0569b0bf6e13d63f6c51790745b2007b92973.tar.bz2 rails-6ef0569b0bf6e13d63f6c51790745b2007b92973.zip |
Merge pull request #13799 from kbrock/better_dirty
Better ActiveRecord hierarchy for Dirty and others
Diffstat (limited to 'activerecord/lib/active_record/scoping.rb')
-rw-r--r-- | activerecord/lib/active_record/scoping.rb | 5 |
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+. |