Methods

Class/Module Index [+]

Quicksearch

Mongoid::Extensions::Hash::Scoping

Adds functionality for criteria scoping/merging.

Public Instance Methods

scoped(*args) click to toggle source

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

# File lib/mongoid/extensions/hash/scoping.rb, line 18
def scoped(*args)
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.