Method: ActiveRecord::Reflection::ThroughReflection#nested?
- Defined in:
- activerecord/lib/active_record/reflection.rb
#nested? ⇒ Boolean
A through association is nested if there would be more than one join table
861 862 863 |
# File 'activerecord/lib/active_record/reflection.rb', line 861 def nested? source_reflection.through_reflection? || through_reflection.through_reflection? end |