Fix typo, it wasn't executing the filtering on tags

This commit is contained in:
chris 2013-10-07 19:01:59 +08:00
parent 061225f56c
commit fe1869199e
1 changed files with 1 additions and 1 deletions

View File

@ -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|