foodsoft/app/inputs/date_picker_input.rb
2016-03-11 13:56:02 +01:00

6 lines
255 B
Ruby

class DatePickerInput < SimpleForm::Inputs::StringInput
def input(wrapper_options)
options = merge_wrapper_options(input_html_options, wrapper_options)
@builder.text_field attribute_name, options.merge(class: 'input-small datepicker')
end
end