Commit d90d3db3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

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

parent 9948e5bc
...@@ -23,7 +23,7 @@ module TokenAuthenticatable ...@@ -23,7 +23,7 @@ module TokenAuthenticatable
define_method("reset_#{token_field}!") do define_method("reset_#{token_field}!") do
write_attribute(token_field, generate_token_for(token_field)) write_attribute(token_field, generate_token_for(token_field))
save save!
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment