Module: BootstrapLeather::ThumbnailsHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/bootstrap_leather/thumbnails_helper.rb
Overview
Thumbnails and other images can have a consistent frame.
Instance Method Summary collapse
Instance Method Details
#thumbnail(content = '', &block) ⇒ Object
6 7 8 9 10 11 |
# File 'app/helpers/bootstrap_leather/thumbnails_helper.rb', line 6 def thumbnail(content = '', &block) render( partial: 'bootstrap_leather/thumbnails/thumbnail', locals: { content: content ? content : capture(&block) } ) end |