method

as_json

v4.0.2 - Show latest stable - Class: Date
as_json(options = nil)
public

No documentation available.

# File activesupport/lib/active_support/json/encoding.rb, line 321
  def as_json(options = nil) #:nodoc:
    if ActiveSupport.use_standard_json_time_format
      strftime("%Y-%m-%d")
    else
      strftime("%Y/%m/%d")
    end
  end