Class: Spina::Admin::Conferences::Accounts::PublicUsersController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spina/admin/conferences/accounts/public_users_controller.rb

Overview

Manages user accounts in Spina admin.

Instance Method Summary collapse

Instance Method Details

#destroyObject



27
28
29
30
31
32
33
34
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 27

def destroy
  @user.destroy
  respond_to do |format|
    format.html do
      redirect_to admin_conferences_accounts_public_users_path, success: t('.deleted')
    end
  end
end

#editObject



17
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 17

def edit; end

#indexObject



13
14
15
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 13

def index
  @users = PublicUser.all
end

#updateObject



19
20
21
22
23
24
25
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 19

def update
  if @user.update(public_user_params)
    redirect_to admin_conferences_accounts_public_users_path, success: t('.saved')
  else
    render :edit
  end
end