Sha256: ff5c41b969e772d0fb4967700837e2563fbe9163118460ac1bcd043c2414a7a1

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module BootstrapLeather
  # Thumbnails and other images can have a consistent frame.
  module ThumbnailsHelper
    def thumbnail(content = '', &block)
      render(
        partial: 'bootstrap_leather/thumbnails/thumbnail',
        locals: { content: content ? content : capture(&block) }
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_leather-0.10.14 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.13 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.11 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.10 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.9 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.8 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.7 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.6 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.5 app/helpers/bootstrap_leather/thumbnails_helper.rb
bootstrap_leather-0.10.4 app/helpers/bootstrap_leather/thumbnails_helper.rb