Method: ActionDispatch::Routing::Mapper::Resources::Resource.default_actions

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

.default_actions(api_only) ⇒ Object



1308
1309
1310
1311
1312
1313
1314
# File 'lib/action_dispatch/routing/mapper.rb', line 1308

def default_actions(api_only)
  if api_only
    [:index, :create, :show, :update, :destroy]
  else
    [:index, :create, :new, :show, :update, :destroy, :edit]
  end
end