summaryrefslogtreecommitdiff
path: root/spec/models/user_callout_spec.rb
diff options
context:
space:
mode:
authorSteve Azzopardi <steveazz@outlook.com>2018-12-06 11:55:50 +0100
committerSteve Azzopardi <steveazz@outlook.com>2019-01-07 17:29:26 +0100
commitf9c8822afdddcd83434432dc2c36b87cc1886602 (patch)
treee63fac7d0564ec0d948221188ff64941a67c42bc /spec/models/user_callout_spec.rb
parent7ac32ae282fa2d35a3651de08f35aad1b85ffca0 (diff)
downloadgitlab-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/user_callout_spec.rb')
0 files changed, 0 insertions, 0 deletions