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

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

#default_actionsObject



1196
1197
1198
1199
1200
1201
1202
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 1196

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