osunyorg/admin

View on GitHub
app/services/contact_details/phone.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ContactDetails::Phone < ContactDetails::Base

  protected

  def prepare_value
    super
    @value.remove! ' '
    @value.remove! '.'
    @value = "tel:#{@value}"
  end

  def prepare_label
    super
    @label.gsub! '.', ' '
  end
end