Module: PrefixHelper
- Included in:
- ApplicationHelper, Record, RequestsController, SearchController
- Defined in:
- public/app/helpers/prefix_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.app_prefix(path) ⇒ Object
3 4 5 |
# File 'public/app/helpers/prefix_helper.rb', line 3 def self.app_prefix(path) AppConfig[:public_proxy_prefix].gsub(/\/?$/, '') + (path.start_with?('/') ? path : "/#{path}") end |
.app_prefix_js ⇒ Object
7 8 9 10 11 |
# File 'public/app/helpers/prefix_helper.rb', line 7 def self.app_prefix_js prefix = AppConfig[:public_proxy_prefix].gsub(/\/?$/, '') "'#{prefix}' +" end |
Instance Method Details
#app_prefix(path) ⇒ Object
13 14 15 |
# File 'public/app/helpers/prefix_helper.rb', line 13 def app_prefix(path) PrefixHelper.app_prefix(path) end |
#app_prefix_js ⇒ Object
17 18 19 |
# File 'public/app/helpers/prefix_helper.rb', line 17 def app_prefix_js PrefixHelper.app_prefix_js end |