Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYatish Mehta <yatish.mehta@coupa.com>2016-03-05 01:34:32 +0300
committerRémy Coutable <remy@rymai.me>2016-03-08 18:48:00 +0300
commit6ac68d8cb0477367fbf9642526c459b87b116d40 (patch)
tree182d64e60a9eb10ca1097f55ca93cc5ccc7cf326 /app/controllers/admin/groups_controller.rb
parent36730e8e63c0ebe16785f33cb2b740f8d67b2b25 (diff)
Remove instance variable @group multiple assignment
Diffstat (limited to 'app/controllers/admin/groups_controller.rb')
-rw-r--r--app/controllers/admin/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb
index 4d3e48f7f81..668396a0f20 100644
--- a/app/controllers/admin/groups_controller.rb
+++ b/app/controllers/admin/groups_controller.rb
@@ -55,7 +55,7 @@ class Admin::GroupsController < Admin::ApplicationController
private
def group
- @group = Group.find_by(path: params[:id])
+ @group ||= Group.find_by(path: params[:id])
end
def group_params