fix simple_form deprecations

This commit is contained in:
wvengen 2014-12-10 22:03:17 +01:00
parent 7ac3f54709
commit 12bf2198e5
4 changed files with 19 additions and 16 deletions

View file

@ -1,5 +1,6 @@
class DatePickerInput < SimpleForm::Inputs::StringInput
def input
@builder.text_field(attribute_name, input_html_options.merge({class: 'datepicker'}))
def input(wrapper_options)
options = merge_wrapper_options(input_html_options, wrapper_options)
@builder.text_field attribute_name, options.merge(class: 'datepicker')
end
end