Created
December 15, 2017 07:50
-
-
Save alekseyl/a6a22d85e43b57f8701b80f5b8706c36 to your computer and use it in GitHub Desktop.
devise anycable substitution example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env['rack.session'] = ActionDispatch::Cookies::EncryptedCookieJar.new(cookies)[:_application_session] | |
current_user = Warden::SessionSerializer.new(env).fetch(:user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment