Class Index [+]

Quicksearch

DataMapper::Resource::PersistenceState::Persisted

a persisted resource (abstract)

Public Instance Methods

get(subject, *args) click to toggle source
    # File lib/dm-core/resource/persistence_state/persisted.rb, line 7
 7:         def get(subject, *args)
 8:           lazy_load(subject)
 9:           super
10:         end

Private Instance Methods

collection_for_self() click to toggle source
    # File lib/dm-core/resource/persistence_state/persisted.rb, line 18
18:         def collection_for_self
19:           @collection_for_self ||= resource.collection_for_self
20:         end
lazy_load(subject) click to toggle source
    # File lib/dm-core/resource/persistence_state/persisted.rb, line 22
22:         def lazy_load(subject)
23:           subject.lazy_load(resource)
24:         end
repository() click to toggle source
    # File lib/dm-core/resource/persistence_state/persisted.rb, line 14
14:         def repository
15:           @repository ||= resource.instance_variable_get(:@_repository)
16:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.