method
default_actions
v5.1.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Scoping::Resources::SingletonResource
default_actions()public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1218
def default_actions
if @api_only
[:show, :create, :update, :destroy]
else
[:show, :create, :update, :destroy, :new, :edit]
end
end