lib/approval/models/approval/request_form/update.rb in approval-0.3.4 vs lib/approval/models/approval/request_form/update.rb in approval-0.3.5
- old
+ new
@@ -3,10 +3,10 @@
class Update < 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: "update",
resource_type: record.class.to_s,
resource_id: record.id,