Sha256: 9a3106b04771955e458c15fdf9a618c72daf5efb7bfa92d5c05ddbe9c1162d32
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
module SimpleForm module Inputs class DateTimeInput < Base def input @builder.send(:"#{input_type}_select", attribute_name, input_options, input_html_options) end def has_required? false end private def label_target case input_type when :date, :datetime "#{attribute_name}_1i" when :time "#{attribute_name}_4i" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_form-2.0.0.rc | lib/simple_form/inputs/date_time_input.rb |