module ActiveRecord::Scoping::ClassMethods

def scope_attributes

an AR instance for the particular class this is called on.
Collects attributes from scopes that should be applied when creating
:nodoc:
def scope_attributes
  all.scope_for_create
end