Sha256: 5f27d90ecda0f555bbd1f38ff5acecbcec91a29207fe3bb4c7c07b3e086e55b9

Contents?: true

Size: 662 Bytes

Versions: 20

Compression:

Stored size: 662 Bytes

Contents

require 'active_support/concern'

module Iqvoc
  module Configuration
    module Sync
      extend ActiveSupport::Concern

      included do
        mattr_accessor :syncable_class_names
        self.syncable_class_names = [Iqvoc::Concept.base_class_name]

        Iqvoc.config.register_settings({
          'triplestore.url' => 'http://example.org:8080',
          'triplestore.username' => '',
          'triplestore.password' => '',
          'triplestore.autosync' => false
        })
      end

      module ClassMethods
        def syncable_classes
          self.syncable_class_names.map { |name| 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/sync.rb
iqvoc-4.14.4 lib/iqvoc/configuration/sync.rb
iqvoc-4.13.2 lib/iqvoc/configuration/sync.rb
iqvoc-4.13.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.12.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.12.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.11.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.11.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.10.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.9.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.8.2 lib/iqvoc/configuration/sync.rb
iqvoc-4.8.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.8.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.7.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.6.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.5.2 lib/iqvoc/configuration/sync.rb
iqvoc-4.6.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.5.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.5.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.4.0 lib/iqvoc/configuration/sync.rb