plataformatec/simple_form — pull request #517 by jamescook (2012-03-16 20:16:55+00:00)
Title: Make a copy of input options before modification so options passed by reference are not altered

I'm having trouble using simple_form if the options used in the markup are passed by reference:

e.g

f.input :name, some_configuration_variable

Keys like :collection are deleted from the configuration hash when the input is being built. When the page reloads I'm missing those keys modified inside the Input classe(s).

Dup'ing the options in Inputs::Base seems to make simple_form play nice.