diff --git a/mood.rb b/mood.rb index b7bcf91..bb3faee 100644 --- a/mood.rb +++ b/mood.rb @@ -23,6 +23,6 @@ class Mood < ActiveRecord::Base log_mood << [ current_date.to_s, current_mode ] current_date += 1 end - log_mood.each_slice(7).to_a + log_mood.each_slice(7).to_a.last(54) end end