method
as_json
v8.0.0 -
Show latest stable
- Class:
Date
as_json(options = nil)public
No documentation available.
# File activesupport/lib/active_support/core_ext/object/json.rb, line 211
def as_json(options = nil) # :nodoc:
if ActiveSupport::JSON::Encoding.use_standard_json_time_format
strftime("%Y-%m-%d")
else
strftime("%Y/%m/%d")
end
end