Use `save!` when generating new token in `TokenAuthenticatable`

This commit is contained in:
Grzegorz Bizon 2015-12-10 12:43:35 +01:00
parent 9948e5bcdd
commit d90d3db32b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module TokenAuthenticatable
define_method("reset_#{token_field}!") do
write_attribute(token_field, generate_token_for(token_field))
save
save!
end
end
end