lib/simple_form/inputs/date_time_input.rb



module SimpleForm
  module Inputs
    class DateTimeInput < Base
      def input
        @builder.send(:"#{input_type}_select", attribute_name, input_options, input_html_options)
      end

      def label_target
        case input_type
          when :date, :datetime
            "#{attribute_name}_1i"
          when :time
            "#{attribute_name}_4i"
        end
      end
    end
  end
end