aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander <abonec@gmail.com>2011-12-15 00:16:43 -0800
committerAlexander <abonec@gmail.com>2011-12-15 00:16:43 -0800
commitbdcc27155dd08a4abbb8ba1ca07b767a5d8d3416 (patch)
tree0bcdefaf05cf242c41cc07e5ba1135ed320e917d
parentdcd59f2d9f23257def7baee432929da037183ea9 (diff)
parent9e39dc48d687b8274eaec6cb5aa3433701e1620d (diff)
downloadrails-bdcc27155dd08a4abbb8ba1ca07b767a5d8d3416.tar.gz
rails-bdcc27155dd08a4abbb8ba1ca07b767a5d8d3416.tar.bz2
rails-bdcc27155dd08a4abbb8ba1ca07b767a5d8d3416.zip
Merge pull request #74 from abonec/master
Fixed typo in comments
-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