foodsoft/app/inputs/date_picker_input.rb
2014-12-10 22:04:32 +01:00

6 lines
243 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: 'datepicker')
end
end