From 9e39dc48d687b8274eaec6cb5aa3433701e1620d Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 14 Dec 2011 20:53:39 +0400 Subject: Update activerecord/lib/active_record/reflection.rb --- activerecord/lib/active_record/reflection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 52968070cb..57b7f6952e 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -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 -- cgit v1.2.3