Sha256: e65513e36f3a19b246221aa409bede1baaaabe6c03a876c1bdfb7f97b2bbeb5a

Contents?: true

Size: 416 Bytes

Versions: 6

Compression:

Stored size: 416 Bytes

Contents

module Binda
  class ApplicationController < ActionController::Base
    
    protect_from_forgery with: :exception

		before_action :authenticate_user!

		# _ indicates that we are not using the argument in the method
	  def after_sign_in_path_for(_)
	 	  binda.dashboard_path
	  end

		# _ indicates that we are not using the argument in the method
	  def after_sign_out_path_for(_)
	  	root_path
	  end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
binda-0.1.5 app/controllers/binda/application_controller.rb
binda-0.1.4 app/controllers/binda/application_controller.rb
binda-0.1.3 app/controllers/binda/application_controller.rb
binda-0.1.2 app/controllers/binda/application_controller.rb
binda-0.1.1 app/controllers/binda/application_controller.rb
binda-0.1.0 app/controllers/binda/application_controller.rb