From b5a32b0a53a528024f793ad250ea010eb861df93 Mon Sep 17 00:00:00 2001 From: Daniel Weigh Date: Tue, 21 Jan 2014 21:56:03 -0500 Subject: [PATCH] VRFS-931 Band tweaks --- web/app/views/api_search/index.rabl | 4 ++++ web/app/views/api_users/band_index.rabl | 6 +++++- web/app/views/clients/_bands.html.erb | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/app/views/api_search/index.rabl b/web/app/views/api_search/index.rabl index 1a9a9c946..05009f2e3 100644 --- a/web/app/views/api_search/index.rabl +++ b/web/app/views/api_search/index.rabl @@ -77,6 +77,10 @@ if @search.bands_filter_search? @search.is_follower?(band) end + node :biography do |band| + band.biography.nil? ? "" : band.biography + end + child :genres => :genres do attributes :genre_id, :description end diff --git a/web/app/views/api_users/band_index.rabl b/web/app/views/api_users/band_index.rabl index fb7b3a748..2439ee419 100644 --- a/web/app/views/api_users/band_index.rabl +++ b/web/app/views/api_users/band_index.rabl @@ -26,4 +26,8 @@ node :genres do |band| attributes :id, :description end end -end \ No newline at end of file +end + +node :biography do |band| + band.biography.nil? ? "" : band.biography +end diff --git a/web/app/views/clients/_bands.html.erb b/web/app/views/clients/_bands.html.erb index 2dc713b39..4b6c04455 100644 --- a/web/app/views/clients/_bands.html.erb +++ b/web/app/views/clients/_bands.html.erb @@ -22,7 +22,7 @@