fix simple_form deprecations
This commit is contained in:
parent
7ac3f54709
commit
12bf2198e5
4 changed files with 19 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue