Sha256: 03b9b2d8f7864dc2866fb9f23dabef4d93d296ae3eebefdf36fa05a073c3d638
Contents?: true
Size: 641 Bytes
Versions: 7
Compression:
Stored size: 641 Bytes
Contents
# encoding: UTF-8 require 'set' require 'mongo' require 'plucky/extensions' module Plucky autoload :CriteriaHash, 'plucky/criteria_hash' autoload :OptionsHash, 'plucky/options_hash' autoload :Query, 'plucky/query' autoload :Version, 'plucky/version' module Pagination autoload :Decorator, 'plucky/pagination/decorator' autoload :Paginator, 'plucky/pagination/paginator' end def self.to_object_id(value) if value.nil? || (value.respond_to?(:empty?) && value.empty?) nil elsif value.is_a?(BSON::ObjectID) value else BSON::ObjectID.from_string(value.to_s) end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
plucky-0.3.4 | lib/plucky.rb |
plucky-0.3.3 | lib/plucky.rb |
plucky-0.3.2 | lib/plucky.rb |
plucky-0.3.1 | lib/plucky.rb |
plucky-0.3.0 | lib/plucky.rb |
plucky-0.2.1 | lib/plucky.rb |
plucky-0.2 | lib/plucky.rb |