going back to showing the first group on the index page

This commit is contained in:
ilya 2010-08-18 16:35:11 -07:00
parent 5de9362933
commit 516a667ce4

View file

@ -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