From fe1869199efbf8b11968d832cbd0b1640bdbf569 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 7 Oct 2013 19:01:59 +0800 Subject: [PATCH] Fix typo, it wasn't executing the filtering on tags --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 55c0df12..b75edc75 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -321,7 +321,7 @@ class ApplicationController < ActionController::Base a << object if (value.include?(object.category.id.to_s) rescue nil) end objects = a.uniq - when 'tag' + when 'tags' a = Array.new objects.each do |object| object.tags.each do |tag|