Sha256: 37645f85587aabbbf6a5169934452844165ef089372c59d770dae9fead144f9a
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
module ManifestationViewerHelper def google_book_search_preview(isbn) render :partial => 'manifestations/google_book_search', :locals => {:isbn => isbn} end def embed_content(manifestation) case when manifestation.youtube_id render :partial => 'manifestations/youtube', :locals => {:manifestation => manifestation} when manifestation.nicovideo_id render :partial => 'manifestations/nicovideo', :locals => {:manifestation => manifestation} when manifestation.flickr.present? render :partial => 'manifestations/flickr', :locals => {:manifestation => manifestation} when manifestation.respond_to?(:ipaper_id) render :partial => 'manifestations/scribd', :locals => {:manifestation => manifestation} end end end
Version data entries
3 entries across 3 versions & 1 rubygems