Module: DepictionsHelper

Defined in:
app/helpers/depictions_helper.rb

Instance Method Summary collapse

Instance Method Details

#depiction_tag(depiction) ⇒ Object



3
4
5
6
# File 'app/helpers/depictions_helper.rb', line 3

def depiction_tag(depiction)
  return nil if depiction.nil?
  image_tag(depiction.image.image_file.url(:thumb)) + ' ' + image_context_depiction_tag(depiction)
end

#image_context_depiction_tag(depiction) ⇒ Object



8
9
10
11
# File 'app/helpers/depictions_helper.rb', line 8

def image_context_depiction_tag(depiction)
  return nil if depiction.nil?
  object_link(depiction.depiction_object.metamorphosize)
end