Class: Maglev::GetBaseUrl
- Inherits:
-
Object
- Object
- Maglev::GetBaseUrl
- Includes:
- Injectable
- Defined in:
- app/services/maglev/get_base_url.rb
Overview
Get the url used to build the URLs of the pages. In the preview mode, we need the maglev root path.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'app/services/maglev/get_base_url.rb', line 14 def call preview_mode? ? site_preview_path : live_url end |