Class: Blgr::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- Blgr::SessionsController
- Defined in:
- app/controllers/blgr/sessions_controller.rb
Overview
Blogger session controller
Instance Method Summary collapse
Instance Method Details
#after_sign_in_path_for ⇒ Object
9 10 11 |
# File 'app/controllers/blgr/sessions_controller.rb', line 9 def after_sign_in_path_for(*) blogger_dashboard_path end |
#after_sign_out_path_for ⇒ Object
13 14 15 |
# File 'app/controllers/blgr/sessions_controller.rb', line 13 def after_sign_out_path_for(*) new_blogger_session_path end |
#switch_locale(&action) ⇒ Object
17 18 19 20 21 |
# File 'app/controllers/blgr/sessions_controller.rb', line 17 def switch_locale(&action) I18n.with_locale(:en) do Globalize.with_locale(:en, &action) end end |