Remove the now useless #formatted_value method
This commit is contained in:
parent
c00aac2f80
commit
f5a31be36a
3 changed files with 1 additions and 82 deletions
|
@ -9,21 +9,4 @@ module ChampHelper
|
|||
raw(champ.to_render_data.to_json)
|
||||
# rubocop:enable Rails/OutputSafety
|
||||
end
|
||||
|
||||
def formatted_value(champ)
|
||||
value = champ.value
|
||||
type = champ.type_champ
|
||||
|
||||
if type == TypeDeChamp.type_champs.fetch(:date)
|
||||
champ.to_s
|
||||
elsif type.in? [TypeDeChamp.type_champs.fetch(:checkbox), TypeDeChamp.type_champs.fetch(:engagement)]
|
||||
champ.to_s
|
||||
elsif type == TypeDeChamp.type_champs.fetch(:yes_no)
|
||||
champ.to_s
|
||||
elsif type == TypeDeChamp.type_champs.fetch(:multiple_drop_down_list)
|
||||
champ.to_s
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue