Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
scope_attributes()
public
Collects attributes from scopes that
should be applied when creating an AR instance for the particular class
this is called on.
# File activerecord/lib/active_record/named_scope.rb, line 46
def scope_attributes # :nodoc:
if current_scope
current_scope.scope_for_create
else
scope = relation.clone
scope.default_scoped = true
scope.scope_for_create
end
end