Class: Distribuo::Admin::Apps::ReleasesController

Inherits:
Distribuo::ApplicationAdminController show all
Defined in:
app/controllers/distribuo/admin/apps/releases_controller.rb

Instance Method Summary collapse

Methods included from Respond

#respond

Instance Method Details

#createObject



15
16
17
18
# File 'app/controllers/distribuo/admin/apps/releases_controller.rb', line 15

def create
  authorize @release
  respond(@release.update(permitted_attributes(@release)), action: :index)
end

#editObject



24
# File 'app/controllers/distribuo/admin/apps/releases_controller.rb', line 24

def edit; end

#newObject



11
12
13
# File 'app/controllers/distribuo/admin/apps/releases_controller.rb', line 11

def new
  render :edit
end

#showObject



20
21
22
# File 'app/controllers/distribuo/admin/apps/releases_controller.rb', line 20

def show
  render :edit
end

#updateObject



26
27
28
29
# File 'app/controllers/distribuo/admin/apps/releases_controller.rb', line 26

def update
  authorize @release
  respond(@release.update(permitted_attributes(@release)), action: :index)
end