Make a copy of input options before modification so options passed by reference are not altered

This commit is contained in:
James Cook 2012-03-16 16:09:12 -04:00
parent 5fc9c8c0c1
commit d14650ffe3
1 changed files with 1 additions and 0 deletions

View File

@ -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