Sha256: 38708133b71131ff5d639e1b2f909e06e78c889ab0d4fe466efabda0d3b9ec0d
Contents?: true
Size: 325 Bytes
Versions: 3
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true module CurrentSession # # Base class for providing auth methods # class Auth def initialize(request, user_class) @request = request @user_class = user_class end attr_reader :request, :user_class def auth request.env["omniauth.auth"] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
current_session-0.1.3 | lib/current_session/auth.rb |
current_session-0.1.2 | lib/current_session/auth.rb |
current_session-0.1.0 | lib/current_session/auth.rb |