diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-27 15:35:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-27 15:35:57 -0700 |
commit | 81fb5317dcdec7a9279c1004f3da3204b6c59c76 (patch) | |
tree | 4539c289dae7256b17bded63df09ed7ec1406d5c | |
parent | 0c28247db19f2af9cb71e74f6824715e72f11076 (diff) | |
download | rails-81fb5317dcdec7a9279c1004f3da3204b6c59c76.tar.gz rails-81fb5317dcdec7a9279c1004f3da3204b6c59c76.tar.bz2 rails-81fb5317dcdec7a9279c1004f3da3204b6c59c76.zip |
use consistent keys between cache get / set
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 5ceda933f2..33cbafc6aa 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -164,7 +164,7 @@ module ActiveRecord private # Returns the specified association instance if it responds to :loaded?, nil otherwise. def association_instance_get(name) - @association_cache[name.to_sym] + @association_cache[name] end # Set the specified association instance. |