lib/approval/models/approval/request_form/update.rb in approval-0.3.0 vs lib/approval/models/approval/request_form/update.rb in approval-0.3.1
- old
+ new
@@ -3,10 +3,9 @@
class Update < Base
private
def prepare
::Approval::Request.transaction do
- request = user.approval_requests.new
request.comments.new(user: user, content: reason)
Array(records).each do |record|
request.items.new(
event: "update",
resource_type: record.class.to_s,