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