going back to showing the first group on the index page
This commit is contained in:
parent
5de9362933
commit
516a667ce4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue