Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use the superclass implementation

  • Loading branch information...
commit fa1e101d5469729c0b21c234bde85f731d4ce6e4 1 parent 9267a7d
Aaron Patterson tenderlove authored
2  activerecord/lib/active_record/associations/association_scope.rb
View
@@ -119,7 +119,7 @@ def table_name_for(reflection)
# the owner
klass.table_name
else
- reflection.table_name
+ super
end
end
4 activerecord/lib/active_record/reflection.rb
View
@@ -527,7 +527,9 @@ def through_reflection
#
def chain
@chain ||= begin
- chain = source_reflection.chain + through_reflection.chain
+ a = source_reflection.chain
+ b = through_reflection.chain
+ chain = a + b
chain[0] = self # Use self so we don't lose the information from :source_type
chain
end
Please sign in to comment.
Something went wrong with that request. Please try again.