Class: RailsVitals::HeatmapController

Inherits:
ApplicationController show all
Includes:
Calculable
Defined in:
app/controllers/rails_vitals/heatmap_controller.rb

Instance Method Summary collapse

Methods included from Calculable

#average, #percentage

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/rails_vitals/heatmap_controller.rb', line 4

def index
  records   = RailsVitals.store.all
  @heatmap  = build_heatmap(records)
  @total    = records.size
end