mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Fix brakeman issue by extracting gsub into a function
This commit is contained in:
parent
a82db7a67a
commit
2c494d9373
3 changed files with 7 additions and 2 deletions
5
app/helpers/contact_helper.rb
Normal file
5
app/helpers/contact_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module ContactHelper
|
||||
def printable_street(street)
|
||||
street.to_s.gsub("\n", '<br>').html_safe
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue