Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ユーザーフォロー機能 #20

Merged
merged 3 commits into from
Sep 27, 2023
Merged

ユーザーフォロー機能 #20

merged 3 commits into from
Sep 27, 2023

Conversation

KOH6
Copy link
Owner

@KOH6 KOH6 commented Sep 26, 2023

課題のリンク

やったこと

動作確認方法

その他

  • app/models/user.rbの62行目について、followees.find(user.id)と最初は記述しておりました。しかし、findメソッドは該当レコードがなかった際にエラーを投げるのに対し、find_byメソッドは該当レコードがなかった際にnilを返すのでfind_byメソッドを使用する形で最終的には実装しています。

@KOH6 KOH6 self-assigned this Sep 26, 2023
Copy link
Collaborator

@yamaryo416 yamaryo416 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです!

@KOH6
Copy link
Owner Author

KOH6 commented Sep 27, 2023

ご確認ありがとうございます!マージいたします!

@KOH6 KOH6 merged commit 26b155e into main Sep 27, 2023
10 checks passed
@KOH6 KOH6 deleted the follow branch September 27, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants