Sha256: 2213df6c7b090178a533856b81f3f315b93c74aae6685f228e7ce165e6ce11b8
Contents?: true
Size: 463 Bytes
Versions: 45
Compression:
Stored size: 463 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
45 entries across 19 versions & 6 rubygems