Remove get_build method for find_by_id
The original intention of `get_build` was as a workaround not to violate `CodeReuse/ActiveRecord`. `find_by_id` does the exact same thing but does not violate the rubocop rule.
显示
- app/controllers/projects/artifacts_controller.rb 1 个添加, 1 个删除app/controllers/projects/artifacts_controller.rb
- app/controllers/projects/build_artifacts_controller.rb 1 个添加, 1 个删除app/controllers/projects/build_artifacts_controller.rb
- app/models/project.rb 0 个添加, 4 个删除app/models/project.rb
- spec/models/project_spec.rb 0 个添加, 23 个删除spec/models/project_spec.rb
加载中
想要评论请 注册 或 登录