```ruby
  has_and_belongs_to_many :user_favorites,
    class_name: "User",
    inverse_of: :favorited_links,
    after_add: :add_fav, 
    after_remove: :remove_fav
```