sausage-sandwich/ruby_sandwich

View on GitHub
lib/infrastructure/authentication.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Infrastructure
  module Authentication
    def current_user
      @current_user ||= UserRepository.new.find(session[:user_id])
    end
  end
end