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