Class: Trestle::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/trestle/dashboard_controller.rb

Instance Method Summary collapse

Methods included from Controller::Location

#set_trestle_location_header, #visit_location_with_turbolinks

Instance Method Details

#indexObject


3
4
5
6
# File 'app/controllers/trestle/dashboard_controller.rb', line 3

def index
  admin = primary_admin
  redirect_to admin.path if admin
end