• Steve Azzopardi's avatar
    Create `get_build` for project model · f9c8822a
    Steve Azzopardi authored
    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.
    f9c8822a
build_artifacts_controller.rb 1.36 KB