instance method
scope_action_options
Ruby on Rails 8.1.2
Since v3.0.20 PrivateSignature
scope_action_options(method)
No documentation comment.
Parameters
-
methodreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1972
def scope_action_options(method)
return {} unless @scope[:action_options]
actions = applicable_actions_for(method)
@scope[:action_options].dup.tap do |options|
(options[:only] = Array(options[:only]) & actions) if options[:only]
(options[:except] = Array(options[:except]) & actions) if options[:except]
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1972
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources