Sha256: d99ef7ea7b1eb1f777d8b8a6656a7ddabda6ad8eb1828bba6a193f56c66659e2
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
module MarkMapper module Normalizers class CriteriaHashKey # Public: Returns key normalized for MarkLogic # # key - The key to normalize # # Returns key as Symbol if possible, else key with no changes def call(key) key = key.to_sym if key.respond_to?(:to_sym) return call(key.field) if key.respond_to?(:field) return :_id if key == :id key end end end end
Version data entries
6 entries across 6 versions & 1 rubygems