]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/oauth-plugin/generators/oauth_provider/templates/access_token.rb
Merge 16743:16811 from trunk.
[rails.git] / vendor / plugins / oauth-plugin / generators / oauth_provider / templates / access_token.rb
1 class AccessToken<OauthToken
2   validates_presence_of :user
3   before_create :set_authorized_at
4   
5 protected 
6   
7   def set_authorized_at
8     self.authorized_at = Time.now
9   end
10 end