Class: ROM::Session::State::Created Private
- Inherits:
-
ROM::Session::State
- Object
- ROM::Session::State
- ROM::Session::State::Created
- Includes:
- Adamantium::Flat
- Defined in:
- lib/rom/session/state/created.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
- #commit ⇒ Object private
Methods inherited from ROM::Session::State
#created?, #delete, #deleted?, #persisted?, #save, #transient?, #updated?
Instance Method Details
#commit ⇒ 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 |
# File 'lib/rom/session/state/created.rb', line 12 def commit relation.insert(object) mapper.store_in_identity_map(object) Persisted.new(object, mapper) end |