summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/issuable_collections.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-11-06 22:40:19 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-11-06 22:40:19 +0800
commitf8b681f6e985d49b39d399d60666b051a60a6502 (patch)
treef18b6f54030cb3f21fafbc50ebd390281e22d413 /app/controllers/concerns/issuable_collections.rb
parentfc6aad0b4442c58fde1ac924cb2dd73823273537 (diff)
downloadgitlab-ce-f8b681f6e985d49b39d399d60666b051a60a6502.tar.gz
WIP
Diffstat (limited to 'app/controllers/concerns/issuable_collections.rb')
-rw-r--r--app/controllers/concerns/issuable_collections.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/concerns/issuable_collections.rb b/app/controllers/concerns/issuable_collections.rb
index cfd1d077fe8..521d6e8eca5 100644
--- a/app/controllers/concerns/issuable_collections.rb
+++ b/app/controllers/concerns/issuable_collections.rb
@@ -26,6 +26,7 @@ module IssuableCollections
@users = []
end
+ # rubocop:enable Cop/ModuleWithInstanceVariables
def issues_collection
issues_finder.execute.preload(:project, :author, :assignees, :labels, :milestone, project: :namespace)
@@ -110,6 +111,7 @@ module IssuableCollections
@filter_params.permit(IssuableFinder::VALID_PARAMS)
end
+ # rubocop:enable Cop/ModuleWithInstanceVariables
def set_default_state
params[:state] = 'opened' if params[:state].blank?