Class: ActiveAdmin::Inputs::DatepickerInput
- Inherits:
-
Formtastic::Inputs::StringInput
- Object
- Formtastic::Inputs::StringInput
- ActiveAdmin::Inputs::DatepickerInput
- Defined in:
- lib/active_admin/inputs/datepicker_input_fix.rb
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/active_admin/inputs/datepicker_input_fix.rb', line 4 def = super value = object.send(method) [:class] = [[:class], "datepicker"].compact.join(' ') [:value] = value.blank? ? '' : value.strftime("%d.%m.%Y") end |