instance method
resource_scope
Ruby on Rails 3.0.20
Since v3.0.20Signature
resource_scope(resource)
No documentation comment.
Parameters
-
resourcereq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1266
def resource_scope(resource)
with_scope_level(resource.is_a?(SingletonResource) ? :resource : :resources, resource) do
scope(parent_resource.resource_scope) do
yield
end
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1266
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources