Skip to content
H

Has Friendship

Add friendship to ActiveRecord models

by has-friendshipFree

#748in Social
0In stores

Description

HasFriendship adds friendship features to ActiveRecord models in a Rails application. Objects can send, accept and decline friend requests,…

Highlights

  • Send, accept and decline friend requests
  • Pending, blocked and accepted friend lists
  • Custom validations for friendships
  • Callbacks for friendship events
  • Rails migration generator

Ratings & Reviews

No ratings yet

Be the first to rate Has Friendship.

People also visit

R

rails-expert

Rails 7+ specialist that optimizes Active Record queries

AI Skills
Get
A

Acts As Messageable

Gem that allows communication between the models

Social
Launch
D

Django Social Network

Django based social network

Social
Launch
S

Secondbase

Seamless second database integration for Rails

Developer Tools
Launch
F

Friendica

A Decentralized Social Network

Social
Launch
M

Meetifyr

Get Your Friends Together

Social
Launch

Has Friendship FAQ

What is HasFriendship?

A Rails gem that adds friend requests and friendships to ActiveRecord models.

How do I install it?

Add has_friendship to your model, then run rails has_friendship_engine:install:migrations and rails db:migrate.

Can I use UUIDs for friend IDs?

Yes, but the default migration uses an integer friend_id. The README says to edit the migration file before running it for another datatype.

Can I add my own rules?

Yes. Implement friendship_errors on your model to return errors that stop a friendship from being established.

What are the best Has Friendship alternatives?

Popular alternatives to Has Friendship include Acts As Messageable, Django Social Network and Friendica. See all Has Friendship alternatives

Developer Stuff

Badges