Class: RestaurantPartners::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- RestaurantPartners::SessionsController
- Defined in:
- app/controllers/restaurant_partners/sessions_controller.rb
Overview
typed: ignore frozen_string_literal: true
Instance Method Summary collapse
Instance Method Details
#after_sign_in_path_for ⇒ Object
8 9 10 |
# File 'app/controllers/restaurant_partners/sessions_controller.rb', line 8 def after_sign_in_path_for(*) restaurant_partners_root_path end |
#after_sign_out_path_for ⇒ Object
12 13 14 |
# File 'app/controllers/restaurant_partners/sessions_controller.rb', line 12 def after_sign_out_path_for(*) new_restaurant_partners_staff_session_path end |
#switch_locale(&action) ⇒ Object
16 17 18 19 20 |
# File 'app/controllers/restaurant_partners/sessions_controller.rb', line 16 def switch_locale(&action) I18n.with_locale(:en) do Globalize.with_locale(:en, &action) end end |