Class: Blacklight::Gallery::DocumentComponent

Inherits:
DocumentComponent
  • Object
show all
Defined in:
app/components/blacklight/gallery/document_component.rb

Instance Method Summary collapse

Instance Method Details

#before_renderObject



6
7
8
9
# File 'app/components/blacklight/gallery/document_component.rb', line 6

def before_render
  with_thumbnail(image_options: { class: 'img-thumbnail' }) unless thumbnail.present?
  super
end

#render_document_class(*args) ⇒ Object



11
12
13
# File 'app/components/blacklight/gallery/document_component.rb', line 11

def render_document_class(*args)
  @view_context.render_document_class(*args)
end