Make a copy of input options before modification so options passed by reference are not altered
This commit is contained in:
parent
5fc9c8c0c1
commit
d14650ffe3
|
@ -48,6 +48,7 @@ module SimpleForm
|
|||
def initialize(builder, attribute_name, column, input_type, options = {})
|
||||
super
|
||||
|
||||
options = options.dup
|
||||
@builder = builder
|
||||
@attribute_name = attribute_name
|
||||
@column = column
|
||||
|
|
Loading…
Reference in New Issue