aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorGeoff Buesing <gbuesing@gmail.com>2008-03-22 18:43:36 +0000
committerGeoff Buesing <gbuesing@gmail.com>2008-03-22 18:43:36 +0000
commit29e33161784dae84b1e92f9acf9db7d0f1d0da64 (patch)
tree5ad2286673d14b79f2896efb0c817c8e9809809d /activesupport/lib
parentea285c2f783f4f06918b9c5f5956cf4d5c5e5e25 (diff)
downloadrails-29e33161784dae84b1e92f9acf9db7d0f1d0da64.tar.gz
rails-29e33161784dae84b1e92f9acf9db7d0f1d0da64.tar.bz2
rails-29e33161784dae84b1e92f9acf9db7d0f1d0da64.zip
Ensure correct TimeWithZone#to_date
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/time_with_zone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb
index 5933fc9667..7b9b121a17 100644
--- a/activesupport/lib/active_support/time_with_zone.rb
+++ b/activesupport/lib/active_support/time_with_zone.rb
@@ -139,7 +139,7 @@ module ActiveSupport
end
end
- %w(asctime day hour min mon sec usec wday yday year).each do |name|
+ %w(asctime day hour min mon sec usec wday yday year to_date).each do |name|
define_method(name) do
time.__send__(name)
end