Sha256: 2a5e3359286abfe8f5507a3625161080ca4f07b4bfb77f25807adb87fda68c1a

Contents?: true

Size: 643 Bytes

Versions: 24

Compression:

Stored size: 643 Bytes

Contents

module PgEngine
  class TenantController < ApplicationController
    include PgEngine::RequireSignIn
    include PgEngine::TenantHelper

    before_action do
      Current.namespace = :tenant

      set_tenant_from_params_or_fail!

      cid = Current.account.id
      @other_active_accounts = ActsAsTenant.without_tenant do
        Current.user.user_accounts.ua_active.where.not(account_id: cid).to_a
      end

      unless using_modal2? || frame_embedded? ||
             (self.class.respond_to?(:skip_default_breadcrumb) && self.class.skip_default_breadcrumb)
        add_breadcrumb 'Inicio', :tenant_root_path
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.26 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.25 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.24 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.24.pre.5 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.24.pre.4 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.24.pre.3 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.23 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.22 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.22.pre.3 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.22.pre.2 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.22.pre.1 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.11 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.10 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.9 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.8 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.7 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.6 pg_engine/app/controllers/pg_engine/tenant_controller.rb
pg_rails-7.6.21.pre.5 pg_engine/app/controllers/pg_engine/tenant_controller.rb