Set the locale when adding a comment to an issue
authorTom Hughes <tom@compton.nu>
Wed, 1 Aug 2018 20:35:51 +0000 (21:35 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 1 Aug 2018 20:35:51 +0000 (21:35 +0100)
app/controllers/issue_comments_controller.rb

index 52904d5b2b869550d6c0cc2c254c033b8277c573..8d1acec759699d511058061152f5fcd966dad15c 100644 (file)
@@ -2,6 +2,7 @@ class IssueCommentsController < ApplicationController
   layout "site"
 
   before_action :authorize_web
+  before_action :set_locale
   before_action :require_user
   before_action :check_permission