Refactor friendships controller and model

This commit is contained in:
nertc 2025-01-14 11:33:56 +04:00
parent 2b7a48029b
commit be11f2075e
27 changed files with 317 additions and 338 deletions

View file

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