summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-23 22:31:09 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-23 22:31:09 +0300
commit9304d049de0493de457fdec02114d5a23d116f9b (patch)
tree673933810f30af8931f9ff7beb20cc61d9978b7b /app/controllers
parent470aa7675e07724ff48f159ee12da40409949222 (diff)
downloadgitlab-ce-9304d049de0493de457fdec02114d5a23d116f9b.tar.gz
Fixed some tests and snippet colorize
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/groups_controller.rb2
-rw-r--r--app/controllers/groups_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb
index 1e523050ff2..4e1329c10fb 100644
--- a/app/controllers/admin/groups_controller.rb
+++ b/app/controllers/admin/groups_controller.rb
@@ -74,6 +74,6 @@ class Admin::GroupsController < AdminController
private
def group
- @group = Group.find_by_code(params[:id])
+ @group = Group.find_by_path(params[:id])
end
end
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index c98332eb984..07f613033c4 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -50,7 +50,7 @@ class GroupsController < ApplicationController
protected
def group
- @group ||= Group.find_by_code(params[:id])
+ @group ||= Group.find_by_path(params[:id])
end
def projects