initial rebuild from v1
This commit is contained in:
12
app/controllers/application_controller.rb
Normal file
12
app/controllers/application_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
around_action :switch_locale
|
||||
|
||||
def switch_locale(&action)
|
||||
locale = I18n.default_locale
|
||||
I18n.with_locale(locale, &action)
|
||||
end
|
||||
|
||||
def new_session_path(_scope)
|
||||
new_user_session_path
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user