7
8
9
10
11
12
13
14
15
16
17
|
# File 'app/helpers/enju_manifestation_viewer/application_helper.rb', line 7
def embed_content(manifestation)
if manifestation.youtube_id
render partial: 'manifestations/youtube', locals: {manifestation: manifestation}
elsif manifestation.nicovideo_id
render partial: 'manifestations/nicovideo', locals: {manifestation: manifestation}
elsif manifestation.flickr.present?
render partial: 'manifestations/flickr', locals: {manifestation: manifestation}
elsif manifestation.respond_to?(:ipaper_id)
render partial: 'manifestations/scribd', locals: {manifestation: manifestation}
end
end
|