Sha256: 0a4bef5b903d489aa2ede3d48e71f8e77d9e549cc8d3acfe8a20759ec3c15b84
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
module Effective module Resources module Tenants def tenant? defined?(::Tenant) end def tenant return unless tenant? return nil unless klass.present? return nil unless class_name.include?('::') name = class_name.split('::').first.downcase.to_sym name if Rails.application.config.tenants[name].present? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems