Class: MaintenanceController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/maintenance_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

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