Created
January 4, 2022 11:30
-
-
Save truongnmt/58423e41e63ba66f7547521932a5e364 to your computer and use it in GitHub Desktop.
serialize_from_session
This file contains 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
def serialize_from_session(key, salt) | |
record = to_adapter.get(key) | |
record if record && record.authenticatable_salt == salt | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment