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 = {})
|
def initialize(builder, attribute_name, column, input_type, options = {})
|
||||||
super
|
super
|
||||||
|
|
||||||
|
options = options.dup
|
||||||
@builder = builder
|
@builder = builder
|
||||||
@attribute_name = attribute_name
|
@attribute_name = attribute_name
|
||||||
@column = column
|
@column = column
|
||||||
|
|
Loading…
Reference in New Issue