Permalink
Browse files

Update activerecord/lib/active_record/reflection.rb

  • Loading branch information...
1 parent 74e46e5 commit 9e39dc48d687b8274eaec6cb5aa3433701e1620d @abonec abonec committed Dec 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/reflection.rb
View
2 activerecord/lib/active_record/reflection.rb
@@ -457,7 +457,7 @@ def source_macro
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

0 comments on commit 9e39dc4

Please sign in to comment.