Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 460 Bytes
require 'date'
require 'time'
# Ruby 1.8-cvs and 1.9 define private Time#to_date
class Time
%w(to_date to_datetime).each do |method|
public method if private_instance_methods.include?(method)
require File.dirname(__FILE__) + '/time/calculations'
require File.dirname(__FILE__) + '/time/conversions'
class Time#:nodoc:
include ActiveSupport::CoreExtensions::Time::Calculations
include ActiveSupport::CoreExtensions::Time::Conversions
Jump to Line
Something went wrong with that request. Please try again.