mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Added error messages translations to white ips
This commit is contained in:
parent
289159bff2
commit
97c11f5dfd
7 changed files with 161 additions and 50 deletions
|
@ -1,6 +1,7 @@
|
|||
module Admin
|
||||
class BaseController < ApplicationController
|
||||
before_action :authenticate_admin_user!
|
||||
before_action :set_locale
|
||||
helper_method :head_title_sufix
|
||||
before_action :set_paper_trail_whodunnit
|
||||
|
||||
|
@ -33,5 +34,9 @@ module Admin
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def set_locale
|
||||
I18n.locale = params[:locale] || I18n.default_locale
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue