Sha256: 6b4bc0bf87c100a6b63e48ee7ac6d1ad98f2a52768a8a647b924920faf939bf0
Contents?: true
Size: 454 Bytes
Versions: 81
Compression:
Stored size: 454 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Hash #:nodoc: module CriteriaHelpers #:nodoc: def expand_complex_criteria hsh = {} self.each_pair do |k,v| if k.class == Mongoid::Criterion::Complex hsh[k.key] = {"$#{k.operator}" => v} else hsh[k] = v end end hsh end end end end end
Version data entries
81 entries across 81 versions & 9 rubygems