Module: EacRailsUtils::UrlHelper
- Defined in:
- lib/eac_rails_utils/url_helper.rb
Class Method Summary collapse
-
.relative_url_root ⇒ Object
Returns the relative root url of the application.
-
.relative_url_root=(arg) ⇒ Object
Sets the relative root url of the application.
Class Method Details
.relative_url_root ⇒ Object
Returns the relative root url of the application
7 8 9 10 11 12 13 |
# File 'lib/eac_rails_utils/url_helper.rb', line 7 def relative_url_root if ::ActionController::Base.respond_to?('relative_url_root') ::ActionController::Base.relative_url_root.to_s else ::ActionController::Base.config.relative_url_root.to_s end end |
.relative_url_root=(arg) ⇒ Object
Sets the relative root url of the application
16 17 18 19 20 21 22 |
# File 'lib/eac_rails_utils/url_helper.rb', line 16 def relative_url_root=(arg) if ::ActionController::Base.respond_to?('relative_url_root=') ::ActionController::Base.relative_url_root = arg else ::ActionController::Base.config.relative_url_root = arg end end |