lib/switch_user/provider/devise.rb in switch_user-0.9.5 vs lib/switch_user/provider/devise.rb in switch_user-1.0.0
- old
+ new
@@ -5,10 +5,10 @@
@controller = controller
@warden = @controller.warden
end
def login(user, scope = :user)
- @warden.set_user(user, :scope => scope)
+ @warden.session_serializer.store(user, scope)
end
def logout(scope = :user)
@warden.logout(scope)
end