* adding in session.name to show.rabl and history_show.rabl
This commit is contained in:
parent
0856232f9f
commit
e3d521e07a
|
|
@ -426,6 +426,10 @@ module JamRuby
|
|||
music_session.description
|
||||
end
|
||||
|
||||
def name
|
||||
music_session.name
|
||||
end
|
||||
|
||||
def genre
|
||||
music_session.genre
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue