Use double quotes in controllers/
This commit is contained in:
@@ -36,13 +36,13 @@ class CommentsController < ApplicationController
|
||||
def flag
|
||||
Flag.flag(current_user, @comment)
|
||||
set_comment_flags(@comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_actions'
|
||||
respond_with @comment, template: "comments/_refresh_flag_actions"
|
||||
end
|
||||
|
||||
def unflag
|
||||
Flag.unflag(current_user, @comment)
|
||||
set_comment_flags(@comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_actions'
|
||||
respond_with @comment, template: "comments/_refresh_flag_actions"
|
||||
end
|
||||
|
||||
private
|
||||
@@ -103,7 +103,7 @@ class CommentsController < ApplicationController
|
||||
return if current_user.administrator? || current_user.moderator?
|
||||
|
||||
if @commentable.respond_to?(:comments_closed?) && @commentable.comments_closed?
|
||||
redirect_to @commentable, alert: t('comments.comments_closed')
|
||||
redirect_to @commentable, alert: t("comments.comments_closed")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user