Permalink
Browse files

Added docs about source_type for has_one association

  • Loading branch information...
1 parent a01a017 commit 6ea5e4208f724b50e774e6a1af027336c3ee3de1 @thechrisoshow thechrisoshow committed May 16, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/associations.rb
@@ -753,6 +753,8 @@ def has_many(association_id, options = {}, &extension)
# * <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:

0 comments on commit 6ea5e42

Please sign in to comment.