Module: Mongoid::Document::Flagable::ClassMethods
- Defined in:
- lib/mongoid-flags.rb
Instance Method Summary collapse
Instance Method Details
#find_by_flags(flags) ⇒ Object
51 52 53 54 |
# File 'lib/mongoid-flags.rb', line 51 def find_by_flags(flags) flags = [flags] unless flags.is_a?(Array) criteria.in(:flags => flags).to_a end |