Class: ActiveTracker::DashboardController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/active_tracker/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
# File 'app/controllers/active_tracker/dashboard_controller.rb', line 3

def index
  @statistics = []
  ActiveTracker::Configuration.plugins.each do |plugin|
    @statistics << [*plugin.statistics] if plugin.respond_to?(:statistics)
  end
end