mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-25 07:06:48 +09:00
Reuse token-free message controls and render posting deliveries once
This commit is contained in:
1 parent
e55b6dc3e5
commit
2c53c46767
11 files changed
+66
-10
No files matched your search
@@ -1,7 +1,7 @@
|
||||
module Authentication::SessionLookup
|
||||
def find_session_by_cookie
|
||||
if token = cookies.signed[:session_token]
|
||||
Session.find_by(token: token)
|
||||
Session.eager_load(:user).find_by(token: token)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user