Prod build process
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ApplicationController < ActionController::Base
|
||||
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
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user