X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e1f79d84adc413afa2a1a8d8d06fda9fa5151d49..34e3e51456774127d43408b7ab65c24f41373f62:/app/models/access_token.rb diff --git a/app/models/access_token.rb b/app/models/access_token.rb index 3aa6f9daf..6e48c996d 100644 --- a/app/models/access_token.rb +++ b/app/models/access_token.rb @@ -7,9 +7,9 @@ class AccessToken < OauthToken validates_presence_of :user, :secret before_create :set_authorized_at - -protected - + +protected + def set_authorized_at self.authorized_at = Time.now end