# File lib/active_record/base.rb, line 1069 def scope(method, key = nil) if scoped_methods and scope = scoped_methods[method] key ? scope[key] : scope end end