X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/07df3f9809404084435fae270d95f1d45b5f3dd6..a770d020f9cbd6fcf2934707d08d7fe35e592b9c:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 8a594b01d..1b9dd54e7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -76,7 +76,7 @@ class User < ActiveRecord::Base user = nil end - token.update_attribute(:expiry, 1.week.from_now) if token and user + token.update_column(:expiry, 1.week.from_now) if token and user return user end