From d6a186135f320904507bf9f195fc9637719552d0 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Tue, 26 Jan 2016 15:43:09 +0100 Subject: fix for failing spec --- app/controllers/groups_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 828e5509262..f7c6607aff7 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -81,7 +81,8 @@ class GroupsController < Groups::ApplicationController def group @group ||= Group.find_by(path: params[:id]) - render_404 unless @group + return @group if @group + render_404 end def load_projects -- cgit v1.2.1