Class: BootstrapThumbnailCollectionRenderer

Inherits:
ResourceRenderer::CollectionRenderer::Base show all
Defined in:
app/collection_renderers/bootstrap_thumbnail_collection_renderer.rb

Instance Attribute Summary

Attributes inherited from ResourceRenderer::CollectionRenderer::Base

#collection, #helper, #options, #resource_class

Instance Method Summary collapse

Methods inherited from ResourceRenderer::CollectionRenderer::Base

#association, #initialize

Constructor Details

This class inherits a constructor from ResourceRenderer::CollectionRenderer::Base

Instance Method Details

#render(&block) ⇒ Object



2
3
4
5
6
7
8
# File 'app/collection_renderers/bootstrap_thumbnail_collection_renderer.rb', line 2

def render(&block)
  helper.capture do
    helper.(:div, class: 'row') do
      render_collection(&block)
    end
  end
end