# = simple_form_for @thing do |f| # = f.input :updated_at, :as => :effective_date_time_picker if defined?(SimpleForm) class EffectiveDateTimePickerInput < SimpleForm::Inputs::StringInput def input(wrapper_options = nil) Inputs::EffectiveDateTimePicker::Input.new(object, object_name, template, attribute_name, input_options, (merge_wrapper_options(input_html_options, wrapper_options) || {})).to_html end end end