Sha256: d10a126dcadcef0eb05a0f9100d2c5dabb59abc9be2ef2c55616059efc58c5b7
Contents?: true
Size: 582 Bytes
Versions: 3
Compression:
Stored size: 582 Bytes
Contents
module BitPlayer class ContentProviders::SlideshowProvider < ContentProvider def slideshow source_content end def render_current(options) options.view_context.render( template: "slides/show", locals: { slide: slide(options.position) } ) end def slide(position) slideshow.slides.where(position: position).first || BitPlayer::Slide.new(body: "no slides") end def exists?(position) slideshow.slides.exists?(position: position) end def show_nav_link? true end end end
Version data entries
3 entries across 3 versions & 1 rubygems