Sha256: 79ff7a8e672ba4624b3342467ca906987ee5ffce4883ec8a61f3a85b662192ec
Contents?: true
Size: 302 Bytes
Versions: 25
Compression:
Stored size: 302 Bytes
Contents
# frozen_string_literal: true module PgEngine module RequireTenantSet def self.included(klass) klass.before_action :require_tenant_set end def require_tenant_set return if ActsAsTenant.current_tenant.present? raise ActsAsTenant::Errors::NoTenantSet end end end
Version data entries
25 entries across 25 versions & 1 rubygems