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:
parent
9267a7d971
commit
fa1e101d54
2 changed files with 4 additions and 2 deletions
|
@ -119,7 +119,7 @@ module ActiveRecord
|
|||
# the owner
|
||||
klass.table_name
|
||||
else
|
||||
reflection.table_name
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue