mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
@@ -457,7 +457,7 @@ module ActiveRecord
|
||||
source_reflection.source_macro
|
||||
end
|
||||
|
||||
# A through association is nested iff there would be more than one join table
|
||||
# A through association is nested if there would be more than one join table
|
||||
def nested?
|
||||
chain.length > 2 || through_reflection.macro == :has_and_belongs_to_many
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user