makes proposal tag filter case insensitive

This commit is contained in:
rgarcia
2015-09-28 15:27:49 +02:00
parent c362ad0054
commit e7d1ae63d6

View File

@@ -84,7 +84,7 @@ class ProposalsController < ApplicationController
def parse_tag_filter
if params[:tag].present?
@tag_filter = params[:tag] if ActsAsTaggableOn::Tag.where(name: params[:tag]).exists?
@tag_filter = params[:tag] if ActsAsTaggableOn::Tag.named(params[:tag]).exists?
end
end