Method: Date#as_json
- Defined in:
- activesupport/lib/active_support/core_ext/object/json.rb
#as_json(options = nil) ⇒ Object
:nodoc:
211 212 213 214 215 216 217 |
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 211 def as_json( = nil) # :nodoc: if ActiveSupport::JSON::Encoding.use_standard_json_time_format strftime("%Y-%m-%d") else strftime("%Y/%m/%d") end end |