object @friend_request

attributes :id, :user_id, :friend_id, :status, :message, :created_at

node :friend do |friend_request|
{ :id => friend_request.friend.id, :musician => friend_request.friend.musician, :photo_url => friend_request.friend.photo_url, :name => friend_request.user.name }
end

node :user do |friend_request|
{ :id => friend_request.user.id, :musician => friend_request.user.musician, :photo_url => friend_request.user.photo_url, :name => friend_request.user.name, :is_friend => friend_request.user.friends?(current_user) }
end
