Permalink
Browse files

use consistent keys between cache get / set

  • Loading branch information...
1 parent 0c28247 commit 81fb5317dcdec7a9279c1004f3da3204b6c59c76 @tenderlove tenderlove committed Aug 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -164,7 +164,7 @@ def association(name) #:nodoc:
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.

0 comments on commit 81fb531

Please sign in to comment.