Module: ContentImage

Included in:
ContentItemPresenter, PageHeaderPresenter
Defined in:
app/presenters/content_image.rb

Constant Summary

DEFAULT_IMAGE =
'woople-theme/missing.png'

Instance Method Summary collapse

Instance Method Details

#image {|__getobj__.image || DEFAULT_IMAGE| ... } ⇒ Object

Yields:



4
5
6
# File 'app/presenters/content_image.rb', line 4

def image(&block)
  yield(__getobj__.image || DEFAULT_IMAGE) if __getobj__.respond_to? :image
end