From b6eb8f7793a145ac6a740d56af1bacb40e2980ff Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 7 Dec 2015 21:04:34 +0800 Subject: [PATCH] FIX: Wrong period for quarterly reports. --- app/models/directory_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/directory_item.rb b/app/models/directory_item.rb index 6e21ca7bad4..61fc7e400c9 100644 --- a/app/models/directory_item.rb +++ b/app/models/directory_item.rb @@ -28,8 +28,8 @@ class DirectoryItem < ActiveRecord::Base since = case period_type when :daily then 1.day.ago when :weekly then 1.week.ago - when :quarterly then 3.weeks.ago when :monthly then 1.month.ago + when :quarterly then 3.months.ago when :yearly then 1.year.ago else 1000.years.ago end