Sha256: 7e0eee9d44017c1c3716f76fb4188bee97ae51cae27cb09c1060a9b72d0646e0

Contents?: true

Size: 560 Bytes

Versions: 21

Compression:

Stored size: 560 Bytes

Contents

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 'active_support/core_ext/time/behavior'
require 'active_support/core_ext/time/calculations'
require 'active_support/core_ext/time/conversions'

class Time#:nodoc:
  include ActiveSupport::CoreExtensions::Time::Behavior
  include ActiveSupport::CoreExtensions::Time::Calculations
  include ActiveSupport::CoreExtensions::Time::Conversions
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
activesupport-2.0.0 lib/active_support/core_ext/time.rb
activesupport-2.0.1 lib/active_support/core_ext/time.rb
activesupport-2.0.5 lib/active_support/core_ext/time.rb
activesupport-2.0.4 lib/active_support/core_ext/time.rb
activesupport-2.0.2 lib/active_support/core_ext/time.rb
radiant-0.6.5.1 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
radiant-0.6.5 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
radiant-0.6.6 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
radiant-0.6.7 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
radiant-0.6.8 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
radiant-0.6.9 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
spree-0.0.9 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
spree-0.2.0 vendor/rails/activesupport/lib/active_support/core_ext/time.rb
swivel-0.0.149 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.150 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.155 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.156 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.152 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.157 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb
swivel-0.0.160 vendor/activesupport-2.0.2-/lib/active_support/core_ext/time.rb