commit
b555b858da
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ class Champs::PieceJustificativeChamp < Champ
|
|||
end
|
||||
|
||||
def for_api
|
||||
Rails.application.routes.url_helpers.url_for(piece_justificative_file)
|
||||
if piece_justificative_file.attached?
|
||||
Rails.application.routes.url_helpers.url_for(piece_justificative_file)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue