Sha256: d66fab0b272c9379994aeafd47ca54cc35f6b6ac0bb0df2781f99d8d04308101
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 Bytes
Contents
module Approval module RequestForm class Update < Base private def prepare ::Approval::Request.transaction do request.comments.new(user_id: user.id, content: reason) Array(records).each do |record| request.items.new( event: "update", resource_type: record.class.to_s, resource_id: record.id, params: record.update_params_for_approval, ) end yield(request) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems