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
|
end
|
||||||
|
|
||||||
def for_api
|
def for_api
|
||||||
|
if piece_justificative_file.attached?
|
||||||
Rails.application.routes.url_helpers.url_for(piece_justificative_file)
|
Rails.application.routes.url_helpers.url_for(piece_justificative_file)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue