Module: GalleriaHelper

Defined in:
app/helpers/galleria_helper.rb

Instance Method Summary collapse

Instance Method Details

#attachment_galleria_image_tag(attachment) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/helpers/galleria_helper.rb', line 3

def attachment_galleria_image_tag( attachment )
  image_tag attachment.medium_url, data: {
    thumb: attachment.thumb_url,
    big: attachment.file_url,
    title: attachment.title,
    description: attachment.description,
    #link: attachment.file_url,
  }
end