Class: DataMapper::Resource::PersistenceState::Persisted

Inherits:
DataMapper::Resource::PersistenceState show all
Defined in:
lib/dm-core/resource/persistence_state/persisted.rb

Overview

a persisted resource (abstract)

Direct Known Subclasses

Clean, Deleted, Dirty

Instance Attribute Summary

Attributes inherited from DataMapper::Resource::PersistenceState

#resource

Instance Method Summary collapse

Methods inherited from DataMapper::Resource::PersistenceState

#commit, #delete, #initialize, #rollback, #set

Methods included from Equalizer

#equalize

Constructor Details

This class inherits a constructor from DataMapper::Resource::PersistenceState

Instance Method Details

#get(subject, *args) ⇒ Object



7
8
9
10
# File 'lib/dm-core/resource/persistence_state/persisted.rb', line 7

def get(subject, *args)
  lazy_load(subject)
  super
end