# File lib/dm-core/scope.rb, line 20 def with_scope(query) # merge the current scope with the passed in query with_exclusive_scope(self.query ? self.query.merge(query) : query) {|*block_args| yield(*block_args) } end