Sha256: 467df1fb1214a7ee46a5b3f5ca3e1523d047f65a8e90c11377f0c6d7e93e79b6
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
module Users class AccountSwitcherController < PgEngine.config.users_controller rescue_from ActsAsTenant::Errors::NoTenantSet, with: :internal_error 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.5.1 | pg_engine/app/controllers/users/account_switcher_controller.rb |
pg_rails-7.5.0 | pg_engine/app/controllers/users/account_switcher_controller.rb |