multiple_select: fix decorateur interference

This commit is contained in:
Simon Lehericey 2017-03-15 18:32:20 +01:00
parent b3624256cd
commit ebd2051337
2 changed files with 3 additions and 4 deletions

View file

@ -11,7 +11,7 @@ class DropDownList < ActiveRecord::Base
end
def selected_options(champ)
champ.value.blank? ? [] : multiple ? JSON.parse(champ.value) : [champ.value]
champ.object.value.blank? ? [] : multiple ? JSON.parse(champ.object.value) : [champ.object.value]
end
def multiple