Sha256: 2cd0d9f457ca8955268240f1770d3459911ff1ad5ef29c50c05d6fcb5596258e
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
require 'switch_user/provider/base' module SwitchUser module Provider class Sorcery < Base def initialize(controller) @controller = controller end def login(user, scope = nil) @controller.auto_login(user) end def logout(scope = nil) @controller.logout end def current_user(scope = nil) @controller.current_user end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
switch_user-0.9.1 | lib/switch_user/provider/sorcery.rb |
switch_user-0.9.0 | lib/switch_user/provider/sorcery.rb |