d41d50d52b
and some other de-tenant changes, including removing the controller tenanting concerns
23 lines
433 B
Ruby
23 lines
433 B
Ruby
class Account::SettingsController < ApplicationController
|
|
before_action :ensure_admin, only: :update
|
|
before_action :set_account
|
|
|
|
def show
|
|
@users = User.active.alphabetically
|
|
end
|
|
|
|
def update
|
|
@account.update!(account_params)
|
|
redirect_to account_settings_path
|
|
end
|
|
|
|
private
|
|
def set_account
|
|
@account = Current.account
|
|
end
|
|
|
|
def account_params
|
|
params.expect account: %i[ name ]
|
|
end
|
|
end
|