Use double quotes in controllers/

This commit is contained in:
Julian Herrero
2019-03-13 22:19:49 +01:00
parent 3c313c9c52
commit d24376f6ad
78 changed files with 236 additions and 236 deletions

View File

@@ -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