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

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

#default_actionsObject



1279
1280
1281
1282
1283
1284
1285
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 1279

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