posts_controller.rb: remove unused /posts/home action.
Unused since a4911e3.
This commit is contained in:
@@ -83,14 +83,6 @@ class PostsController < ApplicationController
|
|||||||
end
|
end
|
||||||
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
|
def random
|
||||||
count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout)
|
count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout)
|
||||||
@post = Post.tag_match(params[:tags]).random
|
@post = Post.tag_match(params[:tags]).random
|
||||||
|
|||||||
@@ -196,7 +196,6 @@ Rails.application.routes.draw do
|
|||||||
end
|
end
|
||||||
resource :votes, :controller => "post_votes", :only => [:create, :destroy]
|
resource :votes, :controller => "post_votes", :only => [:create, :destroy]
|
||||||
collection do
|
collection do
|
||||||
get :home
|
|
||||||
get :random
|
get :random
|
||||||
end
|
end
|
||||||
member do
|
member do
|
||||||
|
|||||||
Reference in New Issue
Block a user