Module: Bonanza::CallLinkHelpers

Includes:
ActionView::Helpers::UrlHelper
Defined in:
lib/bonanza/call_link_helpers.rb

Constant Summary collapse

ASTERISK_URL_PATTERN =
'http://pbx.nine.ch/call.php?ext=%{phone_number}'.freeze

Instance Method Summary collapse

Instance Method Details

#call_to(number) ⇒ Object



10
11
12
# File 'lib/bonanza/call_link_helpers.rb', line 10

def call_to(number)
  link_to_if number.present?, number, call_to_url(number)
end