Class: ROM::Session::State::Persisted Private
- Inherits:
-
ROM::Session::State
- Object
- ROM::Session::State
- ROM::Session::State::Persisted
- Defined in:
- lib/rom/session/state/persisted.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from ROM::Session::State
Instance Method Summary collapse
- #delete(relation) ⇒ Object private
- #save(relation) ⇒ Object private
Methods inherited from ROM::Session::State
#created?, #deleted?, #persisted?, #transient?, #updated?
Instance Method Details
#delete(relation) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/rom/session/state/persisted.rb', line 21 def delete(relation) Deleted.new(object, relation) end |
#save(relation) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'lib/rom/session/state/persisted.rb', line 12 def save(relation) if mapper.dirty?(object) Updated.new(object, mapper, relation) else self end end |