v3: github_oauth_token is encrypted

This commit is contained in:
Konstantin Haase 2015-03-06 16:07:45 +01:00
parent 08505fead0
commit 05c20422cc

View File

@ -7,6 +7,9 @@ module Travis::API::V3
has_many :repositories, through: :permissions
has_many :organizations, through: :memberships
serialize :github_oauth_token, Extensions::EncryptedColumn.new(disable: true)
def token
tokens.first_or_create.token
end