Class: Date

Inherits:
Object show all
Includes:
ActiveSupport::CoreExtensions::Date::Behavior, ActiveSupport::CoreExtensions::Date::Calculations, ActiveSupport::CoreExtensions::Date::Conversions
Defined in:
lib/active_support/core_ext/date.rb,
lib/active_support/json/encoders/date.rb

Overview

:nodoc:

Constant Summary

Constants included from ActiveSupport::CoreExtensions::Date::Conversions

ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS

Instance Method Summary collapse

Methods included from ActiveSupport::CoreExtensions::Date::Conversions

included, #readable_inspect, #to_date, #to_datetime, #to_formatted_s, #to_time, #xmlschema

Methods included from ActiveSupport::CoreExtensions::Date::Calculations

#advance, #ago, #beginning_of_day, #beginning_of_month, #beginning_of_quarter, #beginning_of_week, #beginning_of_year, #change, #end_of_day, #end_of_month, included, #last_month, #last_year, #minus_with_duration, #months_ago, #months_since, #next_month, #next_week, #next_year, #plus_with_duration, #since, #tomorrow, #years_ago, #years_since, #yesterday

Methods included from ActiveSupport::CoreExtensions::Date::Behavior

#acts_like_date?

Instance Method Details

#to_json(options = nil) ⇒ Object

:nodoc:



2
3
4
# File 'lib/active_support/json/encoders/date.rb', line 2

def to_json(options = nil) #:nodoc:
  %("#{strftime("%Y/%m/%d")}")
end