Module: ActiveData::Model::Persistence

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_data/model/persistence.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#_destroyObject



40
41
42
# File 'lib/active_data/model/persistence.rb', line 40

def _destroy
  marked_for_destruction?
end

#destroyed?Boolean

Returns:



28
29
30
# File 'lib/active_data/model/persistence.rb', line 28

def destroyed?
  !!@destroyed
end

#mark_for_destructionObject



36
37
38
# File 'lib/active_data/model/persistence.rb', line 36

def mark_for_destruction
  @marked_for_destruction = true
end

#marked_for_destruction?Boolean

Returns:



32
33
34
# File 'lib/active_data/model/persistence.rb', line 32

def marked_for_destruction?
  @marked_for_destruction
end

#persisted?Boolean

Returns:



24
25
26
# File 'lib/active_data/model/persistence.rb', line 24

def persisted?
  !!@persisted
end