Class: Binda::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Binda::ApplicationController
- Defined in:
- app/controllers/binda/application_controller.rb
Direct Known Subclasses
AssetsController, AudiosController, BoardsController, CategoriesController, ChoicesController, ComponentsController, FieldGroupsController, FieldSettingsController, GalleriesController, ImagesController, RepeatersController, StructuresController, SvgsController, VideosController
Instance Method Summary collapse
-
#after_sign_in_path_for(_) ⇒ Object
_ indicates that we are not using the argument in the method.
-
#after_sign_out_path_for(_) ⇒ Object
_ indicates that we are not using the argument in the method.
-
#set_locale ⇒ Object
Avoid inheriting locale from application on which Binda is mounted.
Instance Method Details
#after_sign_in_path_for(_) ⇒ Object
_ indicates that we are not using the argument in the method
10 11 12 |
# File 'app/controllers/binda/application_controller.rb', line 10 def after_sign_in_path_for(_) binda.dashboard_path end |
#after_sign_out_path_for(_) ⇒ Object
_ indicates that we are not using the argument in the method
15 16 17 |
# File 'app/controllers/binda/application_controller.rb', line 15 def after_sign_out_path_for(_) root_path end |
#set_locale ⇒ Object
Avoid inheriting locale from application on which Binda is mounted
20 21 22 |
# File 'app/controllers/binda/application_controller.rb', line 20 def set_locale I18n.locale = I18n.default_locale end |