app/models/concerns/approval/acts_as_user.rb in approval-0.4.0 vs app/models/concerns/approval/acts_as_user.rb in approval-0.5.0
- old
+ new
@@ -17,9 +17,13 @@
def request_for_destroy(records, reason:)
Approval::RequestForm::Destroy.new(user: self, reason: reason, records: records)
end
+ def request_for_perform(records, reason:)
+ Approval::RequestForm::Perform.new(user: self, reason: reason, records: records)
+ end
+
def cancel_request(request, reason:)
Approval::RespondForm::Cancel.new(user: self, reason: reason, request: request)
end
def approve_request(request, reason:, execute: true)