aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags/time_field.rb
blob: e74c578db948f767d8cc0f3e98ddc9e39f2faab4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      class TimeField < DatetimeField # :nodoc:
        private
          def format_date(value)
            value.try(:strftime, "%T.%L")
          end
      end
    end
  end
end