Sha256: c20585a2f084eb508e8d422578c8f8c888e3aedacdb4ea7c41a8b776333b0224
Contents?: true
Size: 482 Bytes
Versions: 5
Compression:
Stored size: 482 Bytes
Contents
module Plucky module Normalizers class OptionsHashKey # Internal: Keys with values that they should normalize to NormalizedKeys = { :order => :sort, :select => :fields, :offset => :skip, :id => :_id, } # Public: Normalizes an options hash key # # key - The key to normalize # # Returns a Symbol. def call(key) NormalizedKeys.fetch key.to_sym, key end end end end
Version data entries
5 entries across 5 versions & 1 rubygems