Sha256: 786ad84b648149fc85e4d5490738b3cccba7d37b1af45279f83250379d10b16b
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iqvoc-3.5.3 | lib/iqvoc/configuration/label.rb |
iqvoc-3.5.2 | lib/iqvoc/configuration/label.rb |
iqvoc-3.5.1 | lib/iqvoc/configuration/label.rb |
iqvoc-3.5.0 | lib/iqvoc/configuration/label.rb |