6
app/helpers/frontend_urls_helper.rb
Normal file
6
app/helpers/frontend_urls_helper.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
module FrontendUrlsHelper
|
||||
def frontend_url(path, **query_params)
|
||||
url_params = query_params.blank? ? "" : "?#{query_params.to_query}"
|
||||
"#{root_url}app/#{path}#{url_params}"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user