Skip to content

Commit

Permalink
Remove unused action
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jun 21, 2015
1 parent c81d9d9 commit 2c5c1d0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/controllers/articles_controller.rb
Expand Up @@ -3,7 +3,7 @@ class ArticlesController < ContentController
before_action :auto_discovery_feed, only: [:show, :index]
before_action :verify_config

layout :theme_layout, except: [:comment_preview, :trackback]
layout :theme_layout, except: [:trackback]

cache_sweeper :blog_sweeper
caches_page :index, :archives, :read, :view_page, :redirect, if: proc { |c| c.request.query_string == '' }
Expand Down Expand Up @@ -108,18 +108,6 @@ def archives
@description = this_blog.archives_desc_template.to_title(@articles, this_blog, params)
end

# FIXME: Belongs in CommentsController
def comment_preview
comment_params = params[:comment] || {}
if comment_params[:body].blank?
render nothing: true
return
end

headers['Content-Type'] = 'text/html; charset=utf-8'
@comment = Comment.new(comment_params)
end

def tag
redirect_to tags_path, status: 301
end
Expand Down

0 comments on commit 2c5c1d0

Please sign in to comment.