Class: SweetStaging::HomeController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- SweetStaging::HomeController
- Defined in:
- app/controllers/sweet_staging/home_controller.rb
Instance Method Summary collapse
Methods included from ApplicationHelper
#active?, #format_datetime, #icon, #insert_css_file, #insert_js_file
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/sweet_staging/home_controller.rb', line 7 def index if SweetStaging.logs.any? redirect_to sweet_staging.watch_url(name: SweetStaging.logs[0][:name]) else render text: "Please configure initializer: https://github.com/igorkasyanchuk/sweet_staging" end end |