aboutsummaryrefslogtreecommitdiffstats
path: root/app/decorators
diff options
context:
space:
mode:
Diffstat (limited to 'app/decorators')
-rw-r--r--app/decorators/controllers/refinery/pages_controller_decorator.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/decorators/controllers/refinery/pages_controller_decorator.rb b/app/decorators/controllers/refinery/pages_controller_decorator.rb
index 0d9a966..10accb0 100644
--- a/app/decorators/controllers/refinery/pages_controller_decorator.rb
+++ b/app/decorators/controllers/refinery/pages_controller_decorator.rb
@@ -42,5 +42,9 @@ ApplicationController.class_eval do
}
@tags = Refinery::Blog::Post.tag_counts_on(:tags, opts)
+ if @tags.empty?
+ opts.delete(:start_at)
+ @tags = Refinery::Blog::Post.tag_counts_on(:tags, opts)
+ end
end
end