Sha256: 7cdec6cf45624eca9cfb4d626138979b9f145fb7b320af847f6fbfd1111df8db
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
module EnjuManifestationViewer module ApplicationHelper 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_manifestation_viewer-0.3.0.beta.1 | app/helpers/enju_manifestation_viewer/application_helper.rb |