Sha256: 8f8c47ce9b13c52b6d55256df504777dbb073225696ef349a45a8e4d8c8a3f7d
Contents?: true
Size: 460 Bytes
Versions: 28
Compression:
Stored size: 460 Bytes
Contents
class AccessToken < OauthToken validates_presence_of :user before_create :set_authorized_at # Implement this to return a hash or array of the capabilities the access token has # This is particularly useful if you have implemented user defined permissions. # def capabilities # {:invalidate=>"/oauth/invalidate",:capabilities=>"/oauth/capabilities"} # end protected def set_authorized_at self.authorized_at = Time.now end end
Version data entries
28 entries across 28 versions & 5 rubygems