Add ServiceResult

pull/4816/head
Oliver Günther 8 years ago
parent fb61244558
commit d676960107
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/services/initialize_session_service.rb

@ -40,6 +40,8 @@ class InitializeSessionService
if drop_old_sessions?
::UserSession.where(user_id: user.id).delete_all
end
ServiceResult.new(success: true, result: session)
end
private

Loading…
Cancel
Save