# File lib/mongo_mapper/plugins/scopes.rb, line 61 def with_scope(query = {}) active_scopes.push(query) yield ensure active_scopes.pop end