Module: Mongoid::Criteria::Queryable::Extensions::BigDecimal::ClassMethods
- Defined in:
- build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/big_decimal.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ String
Evolves the big decimal into a MongoDB friendly value - in this case a string.
Instance Method Details
#evolve(object) ⇒ String
Evolves the big decimal into a MongoDB friendly value - in this case a string.
27 28 29 30 31 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/big_decimal.rb', line 27 def evolve(object) __evolve__(object) do |obj| obj ? obj.to_s : obj end end |