diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-09 23:21:18 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-09 23:21:18 +0100 |
commit | a3ab6ad00872d24d4d87637f93fdae798d0edc79 (patch) | |
tree | 8892ff3dcd95eb1a1aada503a2e52d4146c6bb94 /Gemfile | |
parent | 62abae917281f18b882abb6222d64d049e755047 (diff) | |
download | rails-a3ab6ad00872d24d4d87637f93fdae798d0edc79.tar.gz rails-a3ab6ad00872d24d4d87637f93fdae798d0edc79.tar.bz2 rails-a3ab6ad00872d24d4d87637f93fdae798d0edc79.zip |
Switch `has_secure_token` to `before_save`.
Adding `if` and `unless` support doesn't bode well if the callback to assign
a token only runs on create.
Switch to `before_save`, but keep the conditional so that no token already
assigned is overriden.
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions