Permalink
Browse files

Merge pull request #8445 from claudiob/match_rdoc_with_6ba0f97

Update #where rdoc to match 6ba0f97 [ci skip]
  • Loading branch information...
2 parents af73e3c + 74e3f30 commit ee5999d14015782ee06a9d03ff4c2f007a52ac66 @carlosantoniodasilva carlosantoniodasilva committed Dec 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/relation/query_methods.rb
View
8 activerecord/lib/active_record/relation/query_methods.rb
@@ -432,9 +432,9 @@ def bind!(value) # :nodoc:
# User.joins(:posts).where({ "posts.published" => true })
# User.joins(:posts).where({ posts: { published: true } })
#
- # === no argument or nil
+ # === no argument or :chain
#
- # If no argument or nil is passed, #where returns a new instance of WhereChain which, when
+ # If no argument or :chain is passed, #where returns a new instance of WhereChain which, when
# chained with either #not, #like, or #not_like, returns a new relation.
#
# User.where.not(name: "Jon")
@@ -448,9 +448,9 @@ def bind!(value) # :nodoc:
#
# See WhereChain for more details on #not, #like, and #not_like.
#
- # === empty condition
+ # === blank condition
#
- # If the condition is any other blank-ish object than nil, then where is a # no-op and returns
+ # If the condition is any blank-ish object, then #where is a no-op and returns
# the current relation.
def where(opts = :chain, *rest)
if opts == :chain

0 comments on commit ee5999d

Please sign in to comment.