From 577496cb06c9d32fee855dc831c65fef48a8face Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 27 Aug 2018 17:58:53 +0200 Subject: [PATCH] Fix a typo --- app/controllers/stats_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 7b5605e0e..c24489b83 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -96,7 +96,7 @@ class StatsController < ApplicationController totals = Feedback.where(created_at: 5.weeks.ago..Time.now).group_by_week(:created_at).count - Feedback::rating.values.map do |rating| + Feedback.ratings.values.map do |rating| data = Feedback .where(created_at: 5.weeks.ago..Time.now, rating: rating) .group_by_week(:created_at)