From 23038de470e518523aaac15d33f78a73a6b204b9 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 5 Feb 2017 18:23:47 -0600 Subject: [PATCH] posts_controller.rb: remove unused /posts/home action. Unused since a4911e3. --- app/controllers/posts_controller.rb | 8 -------- config/routes.rb | 1 - 2 files changed, 9 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 95b35a4f3..0ddecd2f0 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -83,14 +83,6 @@ class PostsController < ApplicationController end end - def home - if CurrentUser.user.is_anonymous? - redirect_to intro_explore_posts_path - else - redirect_to posts_path(:tags => params[:tags]) - end - end - def random count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout) @post = Post.tag_match(params[:tags]).random diff --git a/config/routes.rb b/config/routes.rb index 8f8150134..387f0b572 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -196,7 +196,6 @@ Rails.application.routes.draw do end resource :votes, :controller => "post_votes", :only => [:create, :destroy] collection do - get :home get :random end member do