Refactor friendships controller and model
This commit is contained in:
parent
2b7a48029b
commit
be11f2075e
27 changed files with 317 additions and 338 deletions
|
@ -29,7 +29,7 @@ class DiaryEntriesController < ApplicationController
|
|||
elsif params[:friends]
|
||||
if current_user
|
||||
@title = t ".title_followed"
|
||||
entries = DiaryEntry.where(:user => current_user.friends)
|
||||
entries = DiaryEntry.where(:user => current_user.followings)
|
||||
else
|
||||
require_user
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue