diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-12 13:49:42 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-12 13:50:26 +0100 |
commit | 4f2685fb7f778f96327e12ee9246090c5edf5eaa (patch) | |
tree | 7f5c7f5861738181a82145b255577bb661795d97 /app/models/ci/bridge.rb | |
parent | 320b6d965e59a0d732f516c6d821af7de60e8477 (diff) | |
download | gitlab-ce-4f2685fb7f778f96327e12ee9246090c5edf5eaa.tar.gz |
Simplify CI/CD bridge class
Diffstat (limited to 'app/models/ci/bridge.rb')
-rw-r--r-- | app/models/ci/bridge.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/models/ci/bridge.rb b/app/models/ci/bridge.rb index 22546d5d659..29aa00a66d9 100644 --- a/app/models/ci/bridge.rb +++ b/app/models/ci/bridge.rb @@ -4,18 +4,11 @@ module Ci class Bridge < CommitStatus include Importable include AfterCommitQueue - include TokenAuthenticatable include Gitlab::Utils::StrongMemoize - belongs_to :project, inverse_of: :builds - - serialize :options # rubocop:disable Cop/ActiveRecordSerialize + belongs_to :project validates :ref, presence: true - before_save :ensure_token - - add_authentication_token_field :token, encrypted: true - def self.retry(bridge, current_user) raise NotImplementedError end |