23 lines
406 B
Ruby
23 lines
406 B
Ruby
collection @user.followings
|
|
|
|
node :id do |following|
|
|
following.followable.id
|
|
end
|
|
|
|
node :name do |following|
|
|
following.followable.name
|
|
end
|
|
|
|
node :location do |following|
|
|
following.followable.location
|
|
end
|
|
|
|
node :musician do |following|
|
|
if following.followable.instance_of?(JamRuby::User)
|
|
following.followable.musician
|
|
end
|
|
end
|
|
|
|
node :photo_url do |following|
|
|
following.followable.photo_url
|
|
end |