Skip to content

Commit

Permalink
use the superclass implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 18, 2013
1 parent 9267a7d commit fa1e101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -119,7 +119,7 @@ def table_name_for(reflection)
# the owner
klass.table_name
else
reflection.table_name
super
end
end

Expand Down
4 changes: 3 additions & 1 deletion activerecord/lib/active_record/reflection.rb
Expand Up @@ -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
Expand Down

0 comments on commit fa1e101

Please sign in to comment.