aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorErik Behrends <erik.behrends@gmail.com>2011-09-13 22:42:39 +0300
committerErik Behrends <erik.behrends@gmail.com>2011-09-13 22:42:39 +0300
commit3777d4217b58bbb20a7301521f5451b5f55af78d (patch)
tree8321d6f82417c1dbf036b6d1c275385ad6a78592 /activerecord/lib/active_record/associations.rb
parent23fc5fe0e258414f8ac5fe53a297d312d6820462 (diff)
downloadrails-3777d4217b58bbb20a7301521f5451b5f55af78d.tar.gz
rails-3777d4217b58bbb20a7301521f5451b5f55af78d.tar.bz2
rails-3777d4217b58bbb20a7301521f5451b5f55af78d.zip
[:class_name] option in belongs_to should mention belongs_to and not has_one
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 8d755b6848..9e7d609d19 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1329,7 +1329,7 @@ module ActiveRecord
#
# [:class_name]
# Specify the class name of the association. Use it only if that name can't be inferred
- # from the association name. So <tt>has_one :author</tt> will by default be linked to the Author class, but
+ # from the association name. So <tt>belongs_to :author</tt> will by default be linked to the Author class, but
# if the real class name is Person, you'll have to specify it with this option.
# [:conditions]
# Specify the conditions that the associated object must meet in order to be included as a +WHERE+