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