Champ: export yes_no champ with oui non
This commit is contained in:
parent
338911d1a8
commit
b658f8c8dc
2 changed files with 17 additions and 0 deletions
|
@ -75,6 +75,8 @@ class Champ < ActiveRecord::Base
|
|||
case type_champ
|
||||
when 'textarea'
|
||||
ActionView::Base.full_sanitizer.sanitize(value)
|
||||
when 'yes_no'
|
||||
value == 'yes' ? 'oui' : 'non'
|
||||
else
|
||||
value
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue