From 7c838f852539e9f0e3570cb8cec391ac9dd2b3a5 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 26 Dec 2016 15:58:28 -0600 Subject: [PATCH] Delete unused /comments/index_all route and unused _threshold.html.erb template. --- app/views/comments/partials/index/_threshold.html.erb | 3 --- config/routes.rb | 1 - 2 files changed, 4 deletions(-) delete mode 100644 app/views/comments/partials/index/_threshold.html.erb diff --git a/app/views/comments/partials/index/_threshold.html.erb b/app/views/comments/partials/index/_threshold.html.erb deleted file mode 100644 index 449a7ab96..000000000 --- a/app/views/comments/partials/index/_threshold.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<% if post.hidden_comment_count(@current_user) > 0 %> - <%= link_to_remote "#{pluralize post.hidden_comment_count(@current_user), 'comment'} below threshold", :url => index_all_comments_path(:post_id => post.id) %>. -<% end %> diff --git a/config/routes.rb b/config/routes.rb index e4b2805dd..d1ef57588 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -102,7 +102,6 @@ Rails.application.routes.draw do resources :votes, :controller => "comment_votes", :only => [:create, :destroy] collection do get :search - get :index_all end member do put :unvote