Sha256: 318e816e2f2990de5763b454ead5295f5e4c0053b612041c8cf950815cff26ce
Contents?: true
Size: 997 Bytes
Versions: 111
Compression:
Stored size: 997 Bytes
Contents
# # ish_api / videos / _show # json.id video.id.to_s json.slug video.id.to_s json.youtube_id video.youtube_id json.name video.name json.description video.descr json.subhead video.subhead json.x video.x json.y video.y json.url video.video.url json.tags [ { slug: 'adventure', name: 'Adventure' }, { slug: 'bars-and-clubs', name: 'Bars & Clubs' }, { slug: 'food', name: 'Food' }, { slug: 'late-night', name: 'Late Night' } ] if video.user_profile json.username video.user_profile.name end ## @TODO: this is copy-pasted and should be abstracted. if video.is_premium json.premium_tier video.premium_tier json.is_premium video.premium_tier > 0 if @current_profile json.is_purchased @current_profile.has_premium_purchase( video ) end end if video.thumb json.photo_s169_url video.thumb.url( :s169 ) json.photo_thumb2_url video.thumb.url( :thumb2 ) end
Version data entries
111 entries across 111 versions & 1 rubygems