Champ: export multiple_drop_down_list as a [].join(', ')
This commit is contained in:
parent
b658f8c8dc
commit
f4a8ff31b9
2 changed files with 11 additions and 0 deletions
|
@ -77,6 +77,8 @@ class Champ < ActiveRecord::Base
|
|||
ActionView::Base.full_sanitizer.sanitize(value)
|
||||
when 'yes_no'
|
||||
value == 'yes' ? 'oui' : 'non'
|
||||
when 'multiple_drop_down_list'
|
||||
drop_down_list.selected_options_without_decorator(self).join(', ')
|
||||
else
|
||||
value
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue