# File lib/active_record/scoping/named.rb, line 30 def scoped(options = nil) if options scoped.apply_finder_options(options) else if current_scope current_scope.clone else scope = relation scope.default_scoped = true scope end end end