lib/approval/models/approval/request_form/create.rb in approval-0.3.4 vs lib/approval/models/approval/request_form/create.rb in approval-0.3.5

- old
+ new

@@ -3,10 +3,10 @@ class Create < Base private def prepare ::Approval::Request.transaction do - request.comments.new(user: user, content: reason) + request.comments.new(user_id: user.id, content: reason) Array(records).each do |record| request.items.new( event: "create", resource_type: record.class.to_s, params: record.create_params_for_approval,