1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

use consistent keys between cache get / set

This commit is contained in:
Aaron Patterson 2013-08-27 15:35:57 -07:00
parent 0c28247db1
commit 81fb5317dc

View file

@ -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.