From dbfea9b5b0699f9e5260119cb24d2fd6904f0afa Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 Mar 2017 18:26:26 -0500 Subject: [PATCH] correct refactor --- app/controllers/list_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 6454cc68b24..a3ae278b3e9 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -109,7 +109,7 @@ class ListController < ApplicationController def topics_by list_opts = build_topic_list_options target_user = fetch_user_from_params({ include_inactive: current_user.try(:staff?) }, [:user_stat, :user_option]) - list = generate_list_for(action.to_s, target_user, list_opts) + list = generate_list_for("topics_by", target_user, list_opts) list.more_topics_url = url_for(construct_url_with(:next, list_opts)) list.prev_topics_url = url_for(construct_url_with(:prev, list_opts)) respond_with_list(list)