1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/lib/action_cable/connection
Claudio B af954ddd54 [ci skip] Prefer cookies.encrypted over signed (#30129)
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.
2017-08-07 22:32:03 -05:00
..
authorization.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
base.rb [ci skip] Prefer cookies.encrypted over signed (#30129) 2017-08-07 22:32:03 -05:00
client_socket.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
identification.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
internal_channel.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
message_buffer.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
stream.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
stream_event_loop.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
subscriptions.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
tagged_logger_proxy.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
web_socket.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00