diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-16 11:32:42 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-16 11:32:42 -0700 |
commit | a00f547d2b83f95d169050a2b25afa196d0a9205 (patch) | |
tree | bf62ac28f3c36c901d55bc5a96702a34aac0e7e3 /activerecord/lib/active_record | |
parent | d4df7ce7b356835208141e6ac8e5ffb09ece8401 (diff) | |
parent | dd1ec62578db6f7a03d1c07546b00a008a0c629d (diff) | |
download | rails-a00f547d2b83f95d169050a2b25afa196d0a9205.tar.gz rails-a00f547d2b83f95d169050a2b25afa196d0a9205.tar.bz2 rails-a00f547d2b83f95d169050a2b25afa196d0a9205.zip |
Merge pull request #15718 from chancancode/regression_from_15694
Fixed a regression introduced in 84cf156
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index b11c4f804f..d22806fbdf 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -107,6 +107,11 @@ module ActiveRecord end module ClassMethods + def allocate + define_attribute_methods + super + end + def initialize_find_by_cache self.find_by_statement_cache = {}.extend(Mutex_m) end |