Class: Binda::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/binda/application_controller.rb

Instance Method Summary collapse

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 (_)
  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_localeObject

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