Sha256: d3a3e9f0919948499451f2068ad565ecc51cca9f87190b7d5940ecd5696774cf

Contents?: true

Size: 701 Bytes

Versions: 26

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

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/domain/lib/foobara/domain.rb
foobara-0.0.25 projects/domain/lib/foobara/domain.rb
foobara-0.0.24 projects/domain/lib/foobara/domain.rb
foobara-0.0.23 projects/domain/lib/foobara/domain.rb
foobara-0.0.22 projects/domain/lib/foobara/domain.rb
foobara-0.0.21 projects/domain/lib/foobara/domain.rb
foobara-0.0.20 projects/domain/lib/foobara/domain.rb
foobara-0.0.19 projects/domain/lib/foobara/domain.rb
foobara-0.0.18 projects/domain/lib/foobara/domain.rb
foobara-0.0.17 projects/domain/lib/foobara/domain.rb
foobara-0.0.16 projects/domain/lib/foobara/domain.rb
foobara-0.0.15 projects/domain/lib/foobara/domain.rb
foobara-0.0.14 projects/domain/lib/foobara/domain.rb
foobara-0.0.13 projects/domain/lib/foobara/domain.rb
foobara-0.0.12 projects/domain/lib/foobara/domain.rb
foobara-0.0.11 projects/domain/lib/foobara/domain.rb
foobara-0.0.10 projects/domain/lib/foobara/domain.rb
foobara-0.0.9 projects/domain/lib/foobara/domain.rb
foobara-0.0.8 projects/domain/lib/foobara/domain.rb
foobara-0.0.7 projects/domain/lib/foobara/domain.rb