lib/ddr/auth/auth_context_factory.rb in ddr-models-2.11.0 vs lib/ddr/auth/auth_context_factory.rb in ddr-models-3.0.0.alpha.1
- old
+ new
@@ -1,7 +1,9 @@
module Ddr::Auth
class AuthContextFactory
+ private_class_method :new
+
def self.call(user = nil, env = nil)
if env
WebAuthContext.new(user, env)
else
DetachedAuthContext.new(user)