Permalink
Browse files

use the superclass implementation

  • Loading branch information...
1 parent 9267a7d commit fa1e101d5469729c0b21c234bde85f731d4ce6e4 @tenderlove tenderlove committed Jul 18, 2013
@@ -119,7 +119,7 @@ def table_name_for(reflection)
# the owner
klass.table_name
else
- reflection.table_name
+ super
end
end
@@ -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

0 comments on commit fa1e101

Please sign in to comment.