From 6e07658fcf4a3ffc815b2de18d594a62666f5e62 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 12 Mar 2013 09:59:44 -0300 Subject: Remove manual "return true" from AS::TZ match method --- activesupport/lib/active_support/values/time_zone.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index 002f57f4bb..4b880cb5dc 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -239,7 +239,7 @@ module ActiveSupport # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. def =~(re) - return true if name =~ re || MAPPING[name] =~ re + re === name || re === MAPPING[name] end # Returns a textual representation of this time zone. -- cgit v1.2.3