Class: MaintenanceController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- MaintenanceController
- Defined in:
- app/controllers/maintenance_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
GET /maintenance.
Instance Method Details
#show ⇒ Object
GET /maintenance
4 5 6 7 8 9 10 |
# File 'app/controllers/maintenance_controller.rb', line 4 def show if request.env["MAINTENANCE"] render file: 'layouts/maintenance', layout: false else redirect_to root_path end end |