Class: DataMapper::Resource::State::Persisted

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

Overview

a persisted resource (abstract)

Direct Known Subclasses

Clean, Deleted, Dirty

Instance Attribute Summary

Attributes inherited from DataMapper::Resource::State

#resource

Instance Method Summary collapse

Methods inherited from DataMapper::Resource::State

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

Methods included from Equalizer

#equalize

Constructor Details

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

Instance Method Details

#get(subject, *args) ⇒ Object



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

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