class Ransack::Adapters::Mongoid::InquiryHash

Public Instance Methods

and(other) click to toggle source
# File lib/ransack/adapters/mongoid/inquiry_hash.rb, line 10
def and(other)
  { '$and' => [ self, other] }.to_inquiry
end
or(other) click to toggle source
# File lib/ransack/adapters/mongoid/inquiry_hash.rb, line 6
def or(other)
  { '$or' => [ self, other] }.to_inquiry
end