Sha256: ba318a28398b3507a6d2ee8c7ff6e179ee0a3accf79e20d93ff1f1a11fe2cb47
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
module DataMapper module Resource class PersistenceState # a persisted resource (abstract) class Persisted < PersistenceState def get(subject, *args) lazy_load(subject) super end private def repository @repository ||= resource.instance_variable_get(:@_repository) end private def collection_for_self @collection_for_self ||= resource.collection_for_self end private def lazy_load(subject) subject.lazy_load(resource) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | lib/dm-core/resource/persistence_state/persisted.rb |
sbf-dm-core-1.3.0.beta | lib/dm-core/resource/persistence_state/persisted.rb |