Sha256: f2c64b6f288b8dfe0354645d9dcd59a1c0b3f872565f34805e3f3feccd7173b7

Contents?: true

Size: 550 Bytes

Versions: 24

Compression:

Stored size: 550 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Hash #:nodoc:

      # Adds functionality for criteria scoping/merging.
      module Scoping

        # Get the hash scoped for criteria merges.
        #
        # @example Get the hash.
        #   { :field => "value" }.scoped
        #
        # @param [ Array ] args The arguments (ignored).
        #
        # @return [ Hash ] The hash unmodified.
        #
        # @since 1.0.0
        def scoped(*args)
          self
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
mongoid-multi-db-3.0.0 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.6 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.5 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.5 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.4 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.4 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.3 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.2 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.3 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.1 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.3.0 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.2 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.1 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.2.0 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.9 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.8 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.7 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.6 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.5 lib/mongoid/extensions/hash/scoping.rb
mongoid-2.1.4 lib/mongoid/extensions/hash/scoping.rb