aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-12 09:59:44 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-12 10:10:18 -0300
commit6e07658fcf4a3ffc815b2de18d594a62666f5e62 (patch)
tree7626d5cdc4347a22d83e81c9de87a7ab2f46c582
parent824a58a75ae0033705603307eae3145ddd580278 (diff)
downloadrails-6e07658fcf4a3ffc815b2de18d594a62666f5e62.tar.gz
rails-6e07658fcf4a3ffc815b2de18d594a62666f5e62.tar.bz2
rails-6e07658fcf4a3ffc815b2de18d594a62666f5e62.zip
Remove manual "return true" from AS::TZ match method
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb2
1 files changed, 1 insertions, 1 deletions
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.