aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAlexander <abonec@gmail.com>2011-12-14 20:53:39 +0400
committerAlexander <abonec@gmail.com>2011-12-14 20:53:39 +0400
commit9e39dc48d687b8274eaec6cb5aa3433701e1620d (patch)
tree11414fb7f985388c6e2bf0c66fd4ef82c4f4b3e6 /activerecord/lib
parent74e46e51564b38ee0af70387634e0e4138c31742 (diff)
downloadrails-9e39dc48d687b8274eaec6cb5aa3433701e1620d.tar.gz
rails-9e39dc48d687b8274eaec6cb5aa3433701e1620d.tar.bz2
rails-9e39dc48d687b8274eaec6cb5aa3433701e1620d.zip
Update activerecord/lib/active_record/reflection.rb
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
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