]> git.openstreetmap.org Git - rails.git/commitdiff
Set the locale for issue and report views
authorTom Hughes <tom@compton.nu>
Sat, 16 Jun 2018 11:14:58 +0000 (12:14 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 16 Jun 2018 11:14:58 +0000 (12:14 +0100)
app/controllers/issues_controller.rb
app/controllers/reports_controller.rb

index 72952894624195f734efc61925c363492a458c22..96e68573e8e8297421f83de57f583494e2cb9145 100644 (file)
@@ -2,6 +2,7 @@ class IssuesController < ApplicationController
   layout "site"
 
   before_action :authorize_web
+  before_action :set_locale
   before_action :require_user
   before_action :check_permission
   before_action :find_issue, :only => [:show, :resolve, :reopen, :ignore]
index 95c9343e63685dea0d49ad21bccc29e9bc98a98b..08092c073c7de0b14938edafc6c28f445f457c18 100644 (file)
@@ -2,6 +2,7 @@ class ReportsController < ApplicationController
   layout "site"
 
   before_action :authorize_web
+  before_action :set_locale
   before_action :require_user
 
   def new