Skip to content

Commit

Permalink
Mongoid: Criteria#all_in
Browse files Browse the repository at this point in the history
  • Loading branch information
leshill committed Mar 9, 2010
1 parent 6455b1c commit 48e2d53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mongoid/criterion/inclusion.rb
Expand Up @@ -22,6 +22,7 @@ module Inclusion
def all(attributes = {})
update_selector(attributes, "$all")
end
alias :all_in :all

# Adds a criterion to the +Criteria+ that specifies values that must
# be matched in order to return results. This is similar to a SQL "WHERE"
Expand Down Expand Up @@ -61,7 +62,7 @@ def and(selector = nil)
def in(attributes = {})
update_selector(attributes, "$in")
end
alias any_in in
alias :any_in :in

# Adds a criterion to the +Criteria+ that specifies values that must
# be matched in order to return results. This is similar to a SQL "WHERE"
Expand Down

0 comments on commit 48e2d53

Please sign in to comment.