Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/amistad/active_record_friendship_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module ActiveRecordFriendshipModel

belongs_to :blocker,
:class_name => Amistad.friend_model,
:foreign_key => "blocker_id"
:foreign_key => "blocker_id", optional: true

validates_presence_of :friendable_id, :friend_id
validates_uniqueness_of :friend_id, :scope => :friendable_id
Expand Down