method
action_allowed?
v3.0.0 -
Show latest stable
- Class:
ActionDispatch::Routing::DeprecatedMapper::Resource
action_allowed?(action)protected
No documentation available.
# File actionpack/lib/action_dispatch/routing/deprecated_mapper.rb, line 321
def action_allowed?(action)
only, except = @allowed_actions.values_at(:only, :except)
(!only || only.include?(action)) && (!except || !except.include?(action))
end