Sha256: de3bd027ef686e514c063ffdc641c86ba7f3f946981823ae726d0deaed670c56

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

module Alf
  module Sequel
    module UnitOfWork
      class Update

        def rack_status
          200
        end

        def rack_body
          {status: "success", message: "updated"}
        end

        def rack_location(request)
          ids = pk_matching_relation.tuple_extract.to_hash.values
          "#{request.path}/#{ids.join(',')}"
        end

      end # class Insert
    end # module UnitOfWork
  end # module Sequel
end # module Alf

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-rest-0.17.1 lib/alf/rest/alf-ext/unit_of_work/update.rb
alf-rest-0.16.3 lib/alf/rest/alf-ext/unit_of_work/update.rb
alf-rest-0.16.2 lib/alf/rest/alf-ext/unit_of_work/update.rb
alf-rest-0.16.1 lib/alf/rest/alf-ext/unit_of_work/update.rb
alf-rest-0.16.0 lib/alf/rest/alf-ext/unit_of_work/update.rb
alf-rest-0.14.0 lib/alf/rest/alf-ext/unit_of_work/update.rb