* adding in session.name to show.rabl and history_show.rabl

This commit is contained in:
Seth Call 2014-06-18 08:09:36 -05:00
parent 0856232f9f
commit e3d521e07a
3 changed files with 6 additions and 2 deletions

View File

@ -426,6 +426,10 @@ module JamRuby
music_session.description
end
def name
music_session.name
end
def genre
music_session.genre
end

View File

@ -16,7 +16,7 @@ if !current_user
}
else
attributes :id, :music_session_id, :description, :musician_access, :approval_required, :fan_access, :fan_chat,
attributes :id, :music_session_id, :name, :description, :musician_access, :approval_required, :fan_access, :fan_chat,
:band_id, :user_id, :genre_id, :created_at, :like_count, :comment_count
node :share_url do |history|

View File

@ -13,7 +13,7 @@ if !current_user
}
else
attributes :id, :description, :musician_access, :approval_required, :fan_access, :fan_chat, :band_id, :user_id, :claimed_recording_initiator_id, :track_changes_counter, :max_score
attributes :id, :name, :description, :musician_access, :approval_required, :fan_access, :fan_chat, :band_id, :user_id, :claimed_recording_initiator_id, :track_changes_counter, :max_score
node :genres do |item|
[item.genre.description] # XXX: need to return single genre; not array