Class: Bumbleworks::Gui::DashboardsController

Inherits:
ApplicationController show all
Defined in:
lib/bumbleworks/gui/controllers/dashboards_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#layout

Instance Method Details

#set_titleObject



12
13
14
# File 'lib/bumbleworks/gui/controllers/dashboards_controller.rb', line 12

def set_title
  expose :title => 'Dashboard'
end

#showObject



4
5
6
7
8
9
10
# File 'lib/bumbleworks/gui/controllers/dashboards_controller.rb', line 4

def show
  expose({
    :entity_classes => Bumbleworks.entity_classes,
    :recent_processes => Bumbleworks::Process.all(:reverse => true, :limit => 3),
    :recent_tasks => Bumbleworks::Task.first(3)
  })
end