From fd1a96b27c64281ce48b04545f0dc83fe1dcd035 Mon Sep 17 00:00:00 2001 From: Evgeny Mazovetskiy Date: Mon, 3 Aug 2015 17:13:31 +0200 Subject: [PATCH] feed count option --- app/models/feed_factory.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/feed_factory.rb b/app/models/feed_factory.rb index 5a8796a..3b2752d 100644 --- a/app/models/feed_factory.rb +++ b/app/models/feed_factory.rb @@ -205,6 +205,9 @@ class FeedFactory < ApplicationController elsif timeparam_valid?(@options[:median]) feeds = feeds_into_medians(feeds, @options) @rounded = true + elsif timeparam_valid?(@options[:count]) + feeds = feeds_into_counts(feeds, @options) + @rounded = true end end