The pull request with all the code.

You may want to eager load the friendships in order to prevent N+1 queries.

``` ruby
def index
  @user = User.where(id: current_user.id).includes(:friendships)
end
```

If you created the aforementioned scopes, you'll now be able to do:

``` ruby
@user.friendships.pending
@user.friendships.active
```

without incurring additional ActiveRecord queries for the friendship associations. If your users are anything like my facebook friends, they'll have 700+ friendship associations and that would be very bad at scale without eager loading.