diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-18 09:58:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-18 09:58:18 -0700 |
commit | 98d3c41cfb95c3906dda526352c01c702d0aac8b (patch) | |
tree | 5cdab166f5b8dc05422ff904f5c1fd7948469422 | |
parent | 9c219bf3616e62d607593bbb4b96c53f6d5436af (diff) | |
download | rails-98d3c41cfb95c3906dda526352c01c702d0aac8b.tar.gz rails-98d3c41cfb95c3906dda526352c01c702d0aac8b.tar.bz2 rails-98d3c41cfb95c3906dda526352c01c702d0aac8b.zip |
implicit return of nil
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index 87526b78d1..5ecacfc3a7 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -48,7 +48,7 @@ module ActionView # number_to_phone(1235551234, :country_code => 1, :extension => 1343, :delimiter => ".") # => +1.123.555.1234 x 1343 def number_to_phone(number, options = {}) - return nil unless number + return unless number begin Float(number) |