From 516a667ce4a7e5d195fea3062141f931490e2539 Mon Sep 17 00:00:00 2001 From: ilya <ilya@laptop.(none)> Date: Wed, 18 Aug 2010 16:35:11 -0700 Subject: [PATCH] going back to showing the first group on the index page --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5d91f1206d..2912467503 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,7 +19,7 @@ class ApplicationController < ActionController::Base if current_user @groups = current_user.groups @friends = current_user.friends - @group = params[:group] ? current_user.group_by_id(params[:group]) : nil + @group = params[:group] ? current_user.group_by_id(params[:group]) : current_user.groups.first end end -- GitLab