aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 19:54:51 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 20:26:56 -0200
commit308ed01f14d89f84793d471c40325dc5fe25efda (patch)
tree346cbbe6217e7d951350f6e68beb2282fdc8ca4b /activesupport/lib/active_support
parentda507b71f66bca61d06328a876ac1b1482e8fb81 (diff)
downloadrails-308ed01f14d89f84793d471c40325dc5fe25efda.tar.gz
rails-308ed01f14d89f84793d471c40325dc5fe25efda.tar.bz2
rails-308ed01f14d89f84793d471c40325dc5fe25efda.zip
Remove useless empty string
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_phone_converter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb b/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb
index 300924bded..e7840e98c3 100644
--- a/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb
@@ -2,8 +2,7 @@ module ActiveSupport
module NumberHelper
class NumberToPhoneConverter < NumberConverter
def convert
- str = ''
- str << country_code(opts[:country_code])
+ str = country_code(opts[:country_code])
str << convert_to_phone_number(number.to_s.strip)
str << phone_ext(opts[:extension])
end