fix: Move integration text to translation file (#1463)

- Move integration text to translation file
- Split switch_locale
This commit is contained in:
Pranav Raj S
2020-11-30 16:24:54 +05:30
committed by GitHub
parent d51c5d5768
commit 64733ca3bc
9 changed files with 38 additions and 16 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
class ApplicationController < ActionController::Base
include DeviseTokenAuth::Concerns::SetUserByToken
include Pundit
include SwitchLocale
protect_from_forgery with: :null_session
before_action :set_current_user, unless: :devise_controller?
include SwitchLocale
around_action :switch_locale
around_action :handle_with_exception, unless: :devise_controller?
# after_action :verify_authorized