Class: ROM::Session::State::Transient Private

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

TransitionError

Instance Method Summary collapse

Methods inherited from ROM::Session::State

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

Instance Method Details

#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
# File 'lib/rom/session/state/transient.rb', line 12

def save(relation)
  Created.new(object, mapper, relation)
end