Class: ROM::Session::State::Deleted Private

Inherits:
ROM::Session::State show all
Includes:
Adamantium::Flat
Defined in:
lib/rom/session/state/deleted.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.

Defined Under Namespace

Classes: Committed

Constant Summary

Constants inherited from ROM::Session::State

TransitionError

Instance Method Summary collapse

Methods inherited from ROM::Session::State

#created?, #delete, #deleted?, #persisted?, #save, #transient?, #updated?

Instance Method Details

#commitObject

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.



16
17
18
19
# File 'lib/rom/session/state/deleted.rb', line 16

def commit
  relation.delete(object)
  Committed.new(object)
end