Skip to content

Commit

Permalink
use rails storage proxy for audit log url
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Dec 3, 2023
1 parent 6c95cd5 commit e27606f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class Submission < ApplicationRecord
}, scope: false, prefix: true

def audit_trail_url
audit_trail&.url
return if audit_trail.blank?

Rails.application.routes.url_helpers.rails_storage_proxy_url(audit_trail, **Docuseal.default_url_options)
end
alias audit_log_url audit_trail_url
end

0 comments on commit e27606f

Please sign in to comment.