Sha256: aa31a43200ea49986b8d2b9c67931d70d8acf4256522cee374ffdf3129d07c14

Contents?: true

Size: 663 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
iqvoc-4.3.3 lib/iqvoc/configuration/sync.rb
iqvoc-4.3.2 lib/iqvoc/configuration/sync.rb
iqvoc-4.3.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.3.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.2.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.1.3 lib/iqvoc/configuration/sync.rb
iqvoc-4.1.2 lib/iqvoc/configuration/sync.rb
iqvoc-4.1.1 lib/iqvoc/configuration/sync.rb
iqvoc-4.1.0 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.9 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.8 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.7 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.6 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.5 lib/iqvoc/configuration/sync.rb
iqvoc-4.0.4 lib/iqvoc/configuration/sync.rb