Skip to content
Snippets Groups Projects

An `in_namespace` scope is already present

Merged gitlab-qa-bot requested to merge github/fork/zenati/patch-2 into master

Created by: zenati

An in_namespace scope is already present and never used. See: https://github.com/gitlabhq/gitlabhq/blob/master/app/models/project.rb#L161

Instead of always using where(namespace_id: VALUE), using the scope in_namespace would be appropriate.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading