correct refactor

This commit is contained in:
Sam 2017-03-01 18:26:26 -05:00
parent ea9929cf58
commit dbfea9b5b0
1 changed files with 1 additions and 1 deletions

View File

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