Sha256: 99b70c386a70818e1939602f4a589ca492475d6d190ac7f5e79bce8c594baa66
Contents?: true
Size: 901 Bytes
Versions: 23
Compression:
Stored size: 901 Bytes
Contents
class Platform::AccessToken < ApplicationRecord self.table_name = "oauth_access_tokens" include Doorkeeper::Orm::ActiveRecord::Mixins::AccessToken # 🚅 add concerns above. # 🚅 add concerns above. # 🚅 add attribute accessors above. # 🚅 add belongs_to associations above. # 🚅 add has_many associations above. has_one :team, through: :application # 🚅 add has_one associations above. # 🚅 add scopes above. validates :token, presence: true validates :description, presence: true, if: :provisioned? # 🚅 add validations above. # 🚅 add callbacks above. # 🚅 add delegations above. def label_string description end def system_level? return false unless application !application.team_id end def description if system_level? application.name else super end end # 🚅 add methods above. end
Version data entries
23 entries across 23 versions & 1 rubygems