Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

There is no query method for belongs_to associations.

  • Loading branch information...
commit d84106c5b7ca2a5ac7e2b90f6b087c2c3898ba7f 1 parent f37c90a
@radar radar authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  activerecord/lib/active_record/associations.rb
View
1  activerecord/lib/active_record/associations.rb
@@ -1033,7 +1033,6 @@ def has_one(association_id, options = {})
# 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.
Please sign in to comment.
Something went wrong with that request. Please try again.