From f285b6119b9ca7f598e31c0c8518dce3e1b13386 Mon Sep 17 00:00:00 2001 From: gbuesing Date: Sat, 12 Apr 2008 17:37:50 -0500 Subject: Add #getutc alias for DateTime#utc --- activesupport/lib/active_support/core_ext/date_time/calculations.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/core_ext/date_time') diff --git a/activesupport/lib/active_support/core_ext/date_time/calculations.rb b/activesupport/lib/active_support/core_ext/date_time/calculations.rb index 5c351c21c6..fa444f71b1 100644 --- a/activesupport/lib/active_support/core_ext/date_time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date_time/calculations.rb @@ -86,6 +86,7 @@ module ActiveSupport #:nodoc: def utc new_offset(0) end + alias_method :getutc, :utc # Returns true if offset == 0 def utc? -- cgit v1.2.3