Class: Exo::PagesController
- Inherits:
-
ExoController
- Object
- ActionController::Base
- ExoController
- Exo::PagesController
- Includes:
- RequestRestriction
- Defined in:
- app/controllers/exo/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#serve_page ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/exo/pages_controller.rb', line 7 def serve_page if exo_router.route.redirection? redirect_to exo_router.route.to_url else render exo_router.route.view_path, layout: exo_router.route.layout_path end end |