foodsoft/app/inputs/date_picker_input.rb

7 lines
255 B
Ruby
Raw Normal View History

2012-10-08 21:52:03 +02:00
class DatePickerInput < SimpleForm::Inputs::StringInput
2014-12-10 22:03:17 +01:00
def input(wrapper_options)
options = merge_wrapper_options(input_html_options, wrapper_options)
@builder.text_field attribute_name, options.merge(class: 'input-small datepicker')
2012-10-08 21:52:03 +02:00
end
end