1) Upgrade Rails to 1.2.3 2) Revert RedCloth to previous version (who %#$@ cares?) 3) Preserve the Rails Security fix to vendor/rails/actionpack/lib/action_controller/caching.rb from Revision 80.
18 lines
460 B
Ruby
18 lines
460 B
Ruby
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)
|
|
end
|
|
end
|
|
|
|
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
|
|
end
|