lib/money/mongoid/3x/origin/selectable.rb
# Create the standard expression query.
#
# @api private
#
# @example Create the selection.
#   selectable.expr_query(age: 50)
#
# @param [ Hash ] criterion The field/value pairs.
#
# @return [ Selectable ] The cloned selectable.
#
# @since 1.0.0
Create the standard expression query.
Create the standard expression query .
def expr_query(criterion)
      selection(criterion) do |selector, field, value|
        if (field.is_a? Key) && custom_serialization?(field.name, field.operator)
          specified = custom_specify(field.name, field.operator, value)
        else
          specified = field.specify(value.__expand_complex__, negating?)
        end
        selector.merge!(specified)
      end
    end
def expr_query ( criterion ) selection ( criterion ) do | selector , field , value | if ( field . is_a? Key ) && custom_serialization? ( field . name , field . operator ) specified = custom_specify ( field . name , field . operator , value ) else specified = field . specify ( value . __expand_complex__ , negating? ) end selector . merge! ( specified ) end end
Create the standard expression query.
Create the standard expression query .
The cloned selectable.
The cloned selectable .
 Selectable 
criterion
<not_specific>
<not_specific>
criterion The field/value pairs.
criterion The field / value pairs .
api
None
example
Create the selection. selectable.expr_query(age: 50)
Create the selection . selectable . expr_query ( age : 50 )
since
None