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
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
..
action_cable [ci skip] Prefer cookies.encrypted over signed (#30129) 2017-08-07 22:32:03 -05:00
rails/generators/channel Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
action_cable.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00