instance method
with_default_scope
Ruby on Rails 8.1.2
Since v3.1.12Signature
with_default_scope(scope, &block)
No documentation comment.
Parameters
-
scopereq -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 655
def with_default_scope(scope, &block)
scope(**scope) do
instance_exec(&block)
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 655
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base