Sha256: 505c22ad1eb05a7f6fcb0890eb2e4a4b1101b7c3bdb6f733a00d11b39e84014e

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

require "active_support/concern"

module Iqvoc
  module Configuration
    module Collection
      extend ActiveSupport::Concern
      
      included do
        mattr_accessor :base_class_name

        self.base_class_name = 'Collection::Unordered'
      end
      
      module ClassMethods
        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/collection.rb
iqvoc-3.5.2 lib/iqvoc/configuration/collection.rb
iqvoc-3.5.1 lib/iqvoc/configuration/collection.rb
iqvoc-3.5.0 lib/iqvoc/configuration/collection.rb