Sha256: cb87397d54ecc41616e75d4e9b83bc8007f1132adea18c5b18c16a335bc0a419

Contents?: true

Size: 523 Bytes

Versions: 13

Compression:

Stored size: 523 Bytes

Contents

module PgEngine
  class BaseUsersController < ApplicationController
    include PgEngine::RequireSignIn

    before_action do
      # TODO!: requisito que esto esté seteado
      Current.namespace = :users

      # FIXME: ver que esto esté en todas las pantallas en que esté signed in, ej: en la home y en mi perfil
      # desduplicar en tenant controller
      @other_active_accounts = ActsAsTenant.without_tenant do
        Current.user.user_accounts.ua_active.to_a
      end
      @sidebar = false
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.26 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.25 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.24 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.24.pre.5 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.24.pre.4 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.24.pre.3 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.23 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.22 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.22.pre.3 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.22.pre.2 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.22.pre.1 pg_engine/app/controllers/pg_engine/base_users_controller.rb
pg_rails-7.6.21 pg_engine/app/controllers/pg_engine/base_users_controller.rb