blob: 6668d6d718c0b123c6de6287ff334f38ab6eee65 (
plain) (
tree)
|
|
module ActionView
module Helpers
module Tags
class DatetimeLocalField < DatetimeField #:nodoc:
class << self
def field_type
@field_type ||= "datetime-local"
end
end
private
def format_date(value)
value.try(:strftime, "%Y-%m-%dT%T")
end
end
end
end
end
|