Merge pull request #74 from abonec/master

Fixed typo in comments
This commit is contained in:
Alexander
2011-12-15 00:16:43 -08:00

View File

@@ -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