Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: schema-migrati…
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.366 kb
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
Jump to Line
Something went wrong with that request. Please try again.