Method: ActionDispatch::Routing::Mapper::Base#with_default_scope

Defined in:
actionpack/lib/action_dispatch/routing/mapper.rb

#with_default_scope(scope, &block) ⇒ Object



645
646
647
648
649
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 645

def with_default_scope(scope, &block)
  scope(scope) do
    instance_exec(&block)
  end
end