aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-06-12 17:07:35 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-06-12 17:07:35 -0700
commit9e7040d8a01819391c77a34fd185595d845f3aae (patch)
tree5130c6d8328ccea75e6d62c2d8694ad380735ae6 /activerecord/lib
parent9d79333140f290eba7c91c48302469e5f73e604d (diff)
downloadrails-9e7040d8a01819391c77a34fd185595d845f3aae.tar.gz
rails-9e7040d8a01819391c77a34fd185595d845f3aae.tar.bz2
rails-9e7040d8a01819391c77a34fd185595d845f3aae.zip
no need to cache hash lookups
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 1e021765ae..f5ea0edb72 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -533,7 +533,7 @@ module ActiveRecord
# # => <ActiveRecord::Reflection::AssociationReflection: @macro=:has_many, @name=:taggings, @active_record=Post, @plural_name="taggings">
#
def through_reflection
- @through_reflection ||= active_record.reflect_on_association(options[:through])
+ active_record.reflect_on_association(options[:through])
end
# Returns an array of reflections which are involved in this association. Each item in the