summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-12-01 19:21:04 +0100
committerFrancisco Lopez <fjlopez@gitlab.com>2017-12-01 19:21:04 +0100
commit979056e964827a9d6efc979843ac567a3dd5cdfd (patch)
treee2f79082a5af7f923553b9502ba63d94d12e5e74
parentc5a89b35f0d43b54df8767522428a006770673ac (diff)
downloadgitlab-ce-979056e964827a9d6efc979843ac567a3dd5cdfd.tar.gz
Not forcing to redefine preload_relation
-rw-r--r--lib/api/projects_relation_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects_relation_builder.rb b/lib/api/projects_relation_builder.rb
index 2e042d51c05..6482fd94ab8 100644
--- a/lib/api/projects_relation_builder.rb
+++ b/lib/api/projects_relation_builder.rb
@@ -10,7 +10,7 @@ module API
end
def preload_relation(projects_relation, options = {})
- raise NotImplementedError, 'self.preload_relation method must be defined and return a relation'
+ projects_relation
end
def forks_counting_projects(projects_relation)