Sha256: 142a6a387fdf63d14dc11963fd4c2dd74fe2afa642ffd35757de5beae0949d05
Contents?: true
Size: 470 Bytes
Versions: 12
Compression:
Stored size: 470 Bytes
Contents
class AccessToken < OauthToken validates_presence_of :user, :secret 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
12 entries across 12 versions & 3 rubygems