href should not contain space
This commit is contained in:
parent
1bba20a782
commit
f45ede7f44
4 changed files with 9 additions and 3 deletions
|
@ -30,4 +30,10 @@ class Service < ApplicationRecord
|
|||
service_cloned.administrateur = administrateur
|
||||
service_cloned
|
||||
end
|
||||
|
||||
def telephone_url
|
||||
if telephone.present?
|
||||
"tel:#{telephone.gsub(/[[:blank:]]/, '')}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue