Remove dead code

This commit is contained in:
gregoirenovel 2018-12-18 22:48:56 +01:00
parent 1a41a068ec
commit df7e0a9881
17 changed files with 2 additions and 317 deletions

View file

@ -18,20 +18,4 @@ class ChampDecorator < Draper::Decorator
object.value
end
end
def date_for_input
if object.value.present?
if type_champ == TypeDeChamp.type_champs.fetch(:date)
object.value
elsif type_champ == TypeDeChamp.type_champs.fetch(:datetime) && object.value != ' 00:00'
Time.zone.strptime(object.value, "%Y-%m-%d %H:%M").strftime("%Y-%m-%d")
end
end
end
def description_with_links
if description
description.gsub(URI.regexp, '<a target="_blank" href="\0">\0</a>')
end
end
end