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.
63 64 65 66 67 |
# File 'lib/mongoid/criteria/queryable/extensions/regexp.rb', line 63 def evolve(object) __evolve__(object) do |obj| obj.is_a?(String) ? BSON::Regexp::Raw.new(obj) : obj end end |