lib/iqvoc/configuration/collection.rb in iqvoc-4.0.1 vs lib/iqvoc/configuration/collection.rb in iqvoc-4.0.2
- old
+ new
@@ -4,17 +4,23 @@
module Configuration
module Collection
extend ActiveSupport::Concern
included do
- mattr_accessor :base_class_name
+ mattr_accessor :base_class_name, :member_class_names
self.base_class_name = 'Collection::Unordered'
+
+ self.member_class_names = ['Collection::Member::SKOS::Base']
end
module ClassMethods
def base_class
base_class_name.constantize
+ end
+
+ def member_classes
+ member_class_names.map(&:constantize)
end
end
end
end
\ No newline at end of file