Sha256: 3b279f6e2ce7a15930d511c022ce942c838057c9c2de7e9635726ec6fb906dae
Contents?: true
Size: 405 Bytes
Versions: 5
Compression:
Stored size: 405 Bytes
Contents
module Approval module RespondForm class Cancel < Base private def prepare ::Approval::Request.transaction do request.lock! request.assign_attributes(state: :cancelled, cancelled_at: Time.current, respond_user: user) request.comments.new(user: user, content: reason) yield(request) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems