X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/07df3f9809404084435fae270d95f1d45b5f3dd6..ada8b184ea9820b6bfa8926e97e809d4a9a5c44d:/app/models/user.rb?ds=sidebyside 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