Sha256: 801cf7b27df4f15565d063d8dfece69c0db02bc0a9f14cc86cf9b845efb4d5cc
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Hash #:nodoc: module CriteriaHelpers #:nodoc: def expand_complex_criteria hsh = {} each_pair do |k,v| if k.respond_to?(:key) && k.respond_to?(:to_mongo_query) hsh[k.key] ||= {} hsh[k.key].merge!(k.to_mongo_query(v)) else hsh[k] = v end end hsh end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_geospatial-1.0.0rc1 | lib/mongoid_geospatial/extensions/hash.rb |
mongoid_geospatial-1.0.0rc0 | lib/mongoid_geospatial/extensions/hash.rb |