budget/app/controllers/application_controller.rb

10 lines
197 B
Ruby
Raw Normal View History

2022-11-20 15:06:27 -05:00
class ApplicationController < ActionController::Base
2024-08-05 21:49:56 -04:00
before_action :authenticate_user
private
def authenticate_user
Current.user = User.find_by(id: session[:current_user_id])
end
2022-11-20 15:06:27 -05:00
end