Files
baclight/app/controllers/application_controller.rb
T

16 lines
345 B
Ruby
Raw Normal View History

2021-09-26 14:51:13 -07:00
# frozen_string_literal: true
2021-09-26 14:41:38 -07:00
class ApplicationController < ActionController::Base
2026-05-06 13:28:16 -04:00
include Pundit::Authorization
before_action :authenticate_user!
def after_sign_in_path_for(resource)
stored_location_for(resource) || dashboard_path
end
def after_sign_out_path_for(resource_or_scope)
root_path
end
2021-09-26 14:41:38 -07:00
end