Module: Mongoid::Criteria::Queryable::Extensions::Regexp::Raw_::ClassMethods
- Defined in:
- lib/mongoid/criteria/queryable/extensions/regexp.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ BSON::Regexp::Raw
Evolve the object into a raw bson regex.
Instance Method Details
#evolve(object) ⇒ BSON::Regexp::Raw
Evolve the object into a raw bson regex.
62 63 64 65 66 |
# File 'lib/mongoid/criteria/queryable/extensions/regexp.rb', line 62 def evolve(object) __evolve__(object) do |obj| obj.is_a?(String) ? BSON::Regexp::Raw.new(obj) : obj end end |