1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

use the superclass implementation

This commit is contained in:
Aaron Patterson 2013-07-18 15:05:39 -07:00
parent 9267a7d971
commit fa1e101d54
2 changed files with 4 additions and 2 deletions

View file

@ -119,7 +119,7 @@ module ActiveRecord
# the owner
klass.table_name
else
reflection.table_name
super
end
end

View file

@ -527,7 +527,9 @@ module ActiveRecord
#
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