Sha256: d3a3e9f0919948499451f2068ad565ecc51cca9f87190b7d5940ecd5696774cf
Contents?: true
Size: 701 Bytes
Versions: 27
Compression:
Stored size: 701 Bytes
Contents
module Foobara module Domain class << self def install! if @installed # :nocov: raise "Already registered Domain" # :nocov: end # TODO: delete this? @installed = true Namespace.global.foobara_add_category(:organization) { is_a?(Module) && foobara_organization? } Namespace.global.foobara_add_category(:domain) { is_a?(Module) && foobara_domain? } end def reset_all if Foobara::DomainMapper.instance_variable_defined?(:@foobara_domain_mappers_to_process) Foobara::DomainMapper.remove_instance_variable(:@foobara_domain_mappers_to_process) end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems