Fix Sentry 161
This commit is contained in:
parent
c8560d4c3d
commit
31c45fe2e5
1 changed files with 3 additions and 1 deletions
|
@ -49,8 +49,10 @@ class Champs::PieceJustificativeChamp < Champ
|
|||
end
|
||||
|
||||
def for_api
|
||||
if piece_justificative_file.attached?
|
||||
Rails.application.routes.url_helpers.url_for(piece_justificative_file)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue