aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorChris O'Sullivan <thechrisoshow@gmail.com>2008-05-16 16:09:11 +0100
committerChris O'Sullivan <thechrisoshow@gmail.com>2008-05-16 16:09:11 +0100
commit6ea5e4208f724b50e774e6a1af027336c3ee3de1 (patch)
treeadc4692edd3f80a27e45c52645f1382ea45f4e36 /activerecord/lib
parenta01a0178be297b0eb62909819a15a01c6b69a841 (diff)
downloadrails-6ea5e4208f724b50e774e6a1af027336c3ee3de1.tar.gz
rails-6ea5e4208f724b50e774e6a1af027336c3ee3de1.tar.bz2
rails-6ea5e4208f724b50e774e6a1af027336c3ee3de1.zip
Added docs about source_type for has_one association
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index c17e35f5e0..95caf68692 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -753,6 +753,8 @@ module ActiveRecord
# * <tt>:source</tt> - Specifies the source association name used by <tt>has_one :through</tt> queries. Only use it if the name cannot be
# inferred from the association. <tt>has_one :favorite, :through => :favorites</tt> will look for a
# <tt>:favorite</tt> on Favorite, unless a <tt>:source</tt> is given.
+ # * <tt>:source_type</tt> - Specifies type of the source association used by <tt>has_one :through</tt> queries where the source
+ # association is a polymorphic +belongs_to+.
# * <tt>:readonly</tt> - If true, the associated object is readonly through the association.
#
# Option examples: