Sha256: 1559a11a7f40d42de6b93fa37020be2b1d57e80e504f610126490d6d9e7bf518

Contents?: true

Size: 530 Bytes

Versions: 20

Compression:

Stored size: 530 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

20 entries across 20 versions & 1 rubygems

Version Path
iqvoc-4.14.5 lib/iqvoc/configuration/label.rb
iqvoc-4.14.4 lib/iqvoc/configuration/label.rb
iqvoc-4.13.2 lib/iqvoc/configuration/label.rb
iqvoc-4.13.0 lib/iqvoc/configuration/label.rb
iqvoc-4.12.1 lib/iqvoc/configuration/label.rb
iqvoc-4.12.0 lib/iqvoc/configuration/label.rb
iqvoc-4.11.1 lib/iqvoc/configuration/label.rb
iqvoc-4.11.0 lib/iqvoc/configuration/label.rb
iqvoc-4.10.0 lib/iqvoc/configuration/label.rb
iqvoc-4.9.0 lib/iqvoc/configuration/label.rb
iqvoc-4.8.2 lib/iqvoc/configuration/label.rb
iqvoc-4.8.1 lib/iqvoc/configuration/label.rb
iqvoc-4.8.0 lib/iqvoc/configuration/label.rb
iqvoc-4.7.0 lib/iqvoc/configuration/label.rb
iqvoc-4.6.1 lib/iqvoc/configuration/label.rb
iqvoc-4.5.2 lib/iqvoc/configuration/label.rb
iqvoc-4.6.0 lib/iqvoc/configuration/label.rb
iqvoc-4.5.1 lib/iqvoc/configuration/label.rb
iqvoc-4.5.0 lib/iqvoc/configuration/label.rb
iqvoc-4.4.0 lib/iqvoc/configuration/label.rb