lib/approval/models/approval/request_form/create.rb in approval-0.3.0 vs lib/approval/models/approval/request_form/create.rb in approval-0.3.1
- old
+ new
@@ -3,10 +3,9 @@
class Create < 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: "create",
resource_type: record.class.to_s,