diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 0492fddd..fc231a7e 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -4,7 +4,8 @@ class TagsController < ApplicationController def popular params[:name].try :downcase! - render json: popular_serializer.resource(params, nil, current_user: current_user) + params.permit! + render json: popular_serializer.resource(params.to_h, nil, current_user: current_user) end def popular_serializer