Method: Artwork::Model#artwork_url

Defined in:
lib/artwork/model.rb

#artwork_url(attachment_name, size, options = {}) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/artwork/model.rb', line 3

def artwork_url(attachment_name, size, options = {})
  thumb_name = attachment_style_for(attachment_name, size, options)

  return nil unless thumb_name

  send(attachment_name).url(thumb_name, options)
end