Sha256: bb99a82f608d56159fb6dc67cf757d1786a12c60233c5515cc8658a1daad417f

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

# encoding: utf-8

module ROM
  class Session
    class State

      # @api private
      class Deleted < self
        include Concord::Public.new(:object, :relation), Adamantium::Flat

        class Committed < State
          include Adamantium
        end

        # @api private
        def commit
          relation.delete(object)
          Committed.new(object)
        end

      end # Deleted

    end # State
  end # Session
end # ROM

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-session-0.1.1 lib/rom/session/state/deleted.rb
rom-session-0.1.0 lib/rom/session/state/deleted.rb