SumOfUs/Champaign

View on GitHub
app/helpers/campaigner_facing_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CampaignerFacingHelper
  def format_phone_number(number)
    number = number.to_s
    if Phony.plausible?(number)
      Phony.format(number.delete('+'))
    else
      number
    end
  end
end