diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2009-10-27 20:15:26 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2009-10-27 20:15:26 +1000 |
commit | d84106c5b7ca2a5ac7e2b90f6b087c2c3898ba7f (patch) | |
tree | 12c88890fa81bc740c313241b6f10813d9c69291 /activerecord/lib | |
parent | f37c90a8758d4dc007ad6a3428769651981ea4f4 (diff) | |
download | rails-d84106c5b7ca2a5ac7e2b90f6b087c2c3898ba7f.tar.gz rails-d84106c5b7ca2a5ac7e2b90f6b087c2c3898ba7f.tar.bz2 rails-d84106c5b7ca2a5ac7e2b90f6b087c2c3898ba7f.zip |
There is no query method for belongs_to associations.
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 497115e4ff..5cce1c8736 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1033,7 +1033,6 @@ module ActiveRecord # A Post class declares <tt>belongs_to :author</tt>, which will add: # * <tt>Post#author</tt> (similar to <tt>Author.find(author_id)</tt>) # * <tt>Post#author=(author)</tt> (similar to <tt>post.author_id = author.id</tt>) - # * <tt>Post#author?</tt> (similar to <tt>post.author == some_author</tt>) # * <tt>Post#build_author</tt> (similar to <tt>post.author = Author.new</tt>) # * <tt>Post#create_author</tt> (similar to <tt>post.author = Author.new; post.author.save; post.author</tt>) # The declaration can also include an options hash to specialize the behavior of the association. |