Sha256: 7947cca9cfc32c2a67d3a4a271b8f894cf083712142f5899f648c71306397183
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module Users class AccountSwitcherController < PgEngine.config.users_controller rescue_from ActsAsTenant::Errors::NoTenantSet, with: :internal_error skip_before_action :require_tenant_set before_action do @no_main_frame = true end def list @user_accounts = Current.user.user_accounts end def switch user_account = UserAccount.find(params[:user_account_id]) session['current_user_account'] = user_account.id redirect_to root_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.5.2 | pg_engine/app/controllers/users/account_switcher_controller.rb |