diff options
author | Steve Azzopardi <steveazz@outlook.com> | 2018-12-06 11:55:50 +0100 |
---|---|---|
committer | Steve Azzopardi <steveazz@outlook.com> | 2019-01-07 17:29:26 +0100 |
commit | f9c8822afdddcd83434432dc2c36b87cc1886602 (patch) | |
tree | e63fac7d0564ec0d948221188ff64941a67c42bc /spec/models/push_event_payload_spec.rb | |
parent | 7ac32ae282fa2d35a3651de08f35aad1b85ffca0 (diff) | |
download | gitlab-ce-f9c8822afdddcd83434432dc2c36b87cc1886602.tar.gz |
Create `get_build` for project model
Inside of `Projects::ArtifactsController` and
`Projects::BuildArtifactsController` we fetching the build by id using
active record directly which violates `CodeReuse/ActiveRecord` rubocop
rule. Create `get_build` inside of `project` model which does the same
thing.
Diffstat (limited to 'spec/models/push_event_payload_spec.rb')
0 files changed, 0 insertions, 0 deletions