1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

implicit return of nil

This commit is contained in:
Aaron Patterson 2010-10-18 09:58:18 -07:00
parent 9c219bf361
commit 98d3c41cfb

View file

@ -48,7 +48,7 @@ module ActionView
# number_to_phone(1235551234, :country_code => 1, :extension => 1343, :delimiter => ".") # number_to_phone(1235551234, :country_code => 1, :extension => 1343, :delimiter => ".")
# => +1.123.555.1234 x 1343 # => +1.123.555.1234 x 1343
def number_to_phone(number, options = {}) def number_to_phone(number, options = {})
return nil unless number return unless number
begin begin
Float(number) Float(number)