Sha256: e8f54be63ae889c345c23e269837187d0ac31e6709129aba7ed7847009bf32f2

Contents?: true

Size: 531 Bytes

Versions: 16

Compression:

Stored size: 531 Bytes

Contents

require 'active_support/concern'

module Iqvoc
  module Configuration
    module Label
      extend ActiveSupport::Concern

      included do
        mattr_accessor :base_class_name
        self.base_class_name        = 'Label::SKOS::Base'
      end

      module ClassMethods
        # Do not use the following method in models. This will probably cause a
        # loading loop (something like "expected file xyz to load ...")
        def base_class
          base_class_name.constantize
        end
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
iqvoc-4.3.3 lib/iqvoc/configuration/label.rb
iqvoc-4.3.2 lib/iqvoc/configuration/label.rb
iqvoc-4.3.1 lib/iqvoc/configuration/label.rb
iqvoc-4.3.0 lib/iqvoc/configuration/label.rb
iqvoc-4.2.0 lib/iqvoc/configuration/label.rb
iqvoc-4.1.3 lib/iqvoc/configuration/label.rb
iqvoc-4.1.2 lib/iqvoc/configuration/label.rb
iqvoc-4.1.1 lib/iqvoc/configuration/label.rb
iqvoc-4.1.0 lib/iqvoc/configuration/label.rb
iqvoc-4.0.9 lib/iqvoc/configuration/label.rb
iqvoc-4.0.8 lib/iqvoc/configuration/label.rb
iqvoc-4.0.7 lib/iqvoc/configuration/label.rb
iqvoc-4.0.6 lib/iqvoc/configuration/label.rb
iqvoc-4.0.5 lib/iqvoc/configuration/label.rb
iqvoc-4.0.4 lib/iqvoc/configuration/label.rb
iqvoc-4.0.3 lib/iqvoc/configuration/label.rb