Sha256: 830ba8d6ef31da784243b9d660a0f08d26f7ab9c5ff04abc49c9a47dc4031034
Contents?: true
Size: 837 Bytes
Versions: 32
Compression:
Stored size: 837 Bytes
Contents
module EnjuManifestationViewer 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 end
Version data entries
32 entries across 32 versions & 2 rubygems