mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
af954ddd54
In some examples and guides we are recommending to use code like: ```ruby verified_user = User.find_by(id: cookies.signed[:user_id]) ``` My suggestion is to use instead: ```ruby verified_user = User.find_by(id: cookies.encrypted[:user_id]) ``` which invites users to prefer the "newer" encrypted cookies over the "legacy" signed cookies. |
||
---|---|---|
.. | ||
authorization.rb | ||
base.rb | ||
client_socket.rb | ||
identification.rb | ||
internal_channel.rb | ||
message_buffer.rb | ||
stream.rb | ||
stream_event_loop.rb | ||
subscriptions.rb | ||
tagged_logger_proxy.rb | ||
web_socket.rb |