Sha256: 796661c977bb56e306c5d3eccb278caed47eee819c6bffe22ca77c1648638c57
Contents?: true
Size: 571 Bytes
Versions: 24
Compression:
Stored size: 571 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Proc #:nodoc: # Adds functionality for criteria scoping/merging. module Scoping # Get the proc scoped for criteria merges. # # @example Get the hash. # proc.scoped # # @param [ Array ] args The arguments to delegate to the proc. # # @return [ Object ] The result of the proc call. # # @since 1.0.0 def scoped(*args) call(*args).scoped end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems