diff options
author | gbuesing <gbuesing@gmail.com> | 2008-09-14 23:07:48 -0500 |
---|---|---|
committer | gbuesing <gbuesing@gmail.com> | 2008-09-14 23:07:48 -0500 |
commit | 157141b2949b845e372ee703bfd6fba3ffb00415 (patch) | |
tree | f061b3c514f54baf7344bb0daedf347b16feb1e6 /activesupport/lib/active_support | |
parent | cce7ae54663243a224e9871f1aac2388842b0c3a (diff) | |
download | rails-157141b2949b845e372ee703bfd6fba3ffb00415.tar.gz rails-157141b2949b845e372ee703bfd6fba3ffb00415.tar.bz2 rails-157141b2949b845e372ee703bfd6fba3ffb00415.zip |
TimeWithZone #wday, #yday and #to_date avoid trip through #method_missing
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 2 |
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 54cf945251..b7b8807c6d 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -231,7 +231,7 @@ module ActiveSupport end end - %w(year mon month day mday hour min sec).each do |method_name| + %w(year mon month day mday wday yday hour min sec to_date).each do |method_name| class_eval <<-EOV def #{method_name} time.#{method_name} |