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
- #_destroy ⇒ Object
- #destroyed? ⇒ Boolean
- #mark_for_destruction ⇒ Object
- #marked_for_destruction? ⇒ Boolean
- #persisted? ⇒ Boolean
Instance Method Details
#_destroy ⇒ Object
40 41 42 |
# File 'lib/active_data/model/persistence.rb', line 40 def _destroy marked_for_destruction? end |
#destroyed? ⇒ Boolean
28 29 30 |
# File 'lib/active_data/model/persistence.rb', line 28 def destroyed? !!@destroyed end |
#mark_for_destruction ⇒ Object
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
32 33 34 |
# File 'lib/active_data/model/persistence.rb', line 32 def marked_for_destruction? @marked_for_destruction end |
#persisted? ⇒ Boolean
24 25 26 |
# File 'lib/active_data/model/persistence.rb', line 24 def persisted? !!@persisted end |