13 lines
477 B
Ruby
13 lines
477 B
Ruby
module TicketsHelper
|
|
def smart_links_parser(html,site)
|
|
html = html.gsub("href=\"/uploads/","href=\"http://#{site.site_domain}/uploads/")
|
|
html = html.gsub("src=\"/uploads/","src=\"http://#{site.site_domain}/uploads/")
|
|
return html
|
|
end
|
|
|
|
def smart_store_link_parser(html)
|
|
html = html.gsub("href=\"/uploads/","href=\"http://#{request.host_with_port}/uploads/")
|
|
html = html.gsub("src=\"/uploads/","src=\"http://#{request.host_with_port}/uploads/")
|
|
return html
|
|
end
|
|
end |