Class: MetricsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#dev_only, #require_login

Methods included from SessionsHelper

#console?, #current_user, #debug?, #forget, #log_in, #log_out, #logged_in?, #remember, #toggle_console, #toggle_debug

Instance Method Details

#indexObject



2
3
4
# File 'app/controllers/metrics_controller.rb', line 2

def index
  @average = MetricsService.new(Meal.all.to_a).meals_average
end