Class: Distribuo::Admin::AppsController

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

Instance Method Summary collapse

Methods included from Respond

#respond

Instance Method Details

#createObject



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

def create
  authorize @app
  @app.update(permitted_attributes(@app))
  respond_with @app, action: :index
end

#editObject



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

def edit; end

#newObject



10
11
12
# File 'app/controllers/distribuo/admin/apps_controller.rb', line 10

def new
  render :edit
end

#showObject



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

def show
  render :edit
end

#updateObject



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

def update
  authorize @app
  @app.update(permitted_attributes(@app))
  respond_with @app, action: :index
end