Method: IndexController#dashboard

Defined in:
app/controllers/index_controller.rb

#dashboardObject



18
19
20
21
22
23
# File 'app/controllers/index_controller.rb', line 18

def dashboard
  if current_user.is_in_organization?
    @events = current_user.current_organization.events.includes(:shows, :venue).order('updated_at DESC').limit(4)
    @recent_actions = Action.recent(current_user.current_organization).where('import_id is null').page(params[:page]).per_page(10)
  end
end