Class: Ddr::Auth::AuthContextFactory
- Inherits:
-
Object
- Object
- Ddr::Auth::AuthContextFactory
- Defined in:
- lib/ddr/auth/auth_context_factory.rb
Class Method Summary collapse
Class Method Details
.call(user = nil, env = nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ddr/auth/auth_context_factory.rb', line 6 def self.call(user = nil, env = nil) if env WebAuthContext.new(user, env) else DetachedAuthContext.new(user) end end |