Sha256: 4ed5c95ac9b24f5b2d9105a1ee4b83db999fd3ceb80a73728d1c81afdd79663b
Contents?: true
Size: 710 Bytes
Versions: 24
Compression:
Stored size: 710 Bytes
Contents
module TaliaCore module SourceTypes # Dummy source class. This will be created by some mechanisms that need to create a relation to a # not-yet-existing source. The DummySource should only exist temporarily, if some are found inside # the data store it may be a sign of an inconsistent or not completely initialized store. class DummySource < Source # Converts the current source into one with a "real" klass. Returns the new, converted sourc def self.make_real(klass) assit_kind_of(Class, klass) self['type'] = klass.name save! new_src = ActiveSource.find(uri) assit_kind_of(klass, new_src) new_src end end end end
Version data entries
24 entries across 24 versions & 1 rubygems