multiple_select: fix decorateur interference
This commit is contained in:
parent
b3624256cd
commit
ebd2051337
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue