The locale selection was disabled during migration to rails 5.1
Back again...
This commit is contained in:
parent
4e96495967
commit
78cab372a4
@ -1,6 +1,6 @@
|
|||||||
# The top level controller, where can be centralised almost everything
|
# The top level controller, where can be centralised almost everything
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
before_action :set_paper_trail_whodunnit, :discard
|
before_action :set_paper_trail_whodunnit, :set_locale, :discard
|
||||||
# Prevent CSRF attacks by raising an exception.
|
# Prevent CSRF attacks by raising an exception.
|
||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
protect_from_forgery prepend: true, with: :exception
|
protect_from_forgery prepend: true, with: :exception
|
||||||
|
Loading…
Reference in New Issue
Block a user