Module: ContentImage

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

Constant Summary collapse

DEFAULT_IMAGE =
'woople-theme/missing.png'
MISSING_WOOPLE_IMAGE =
'/assets/retina_thumb/missing.png'

Instance Method Summary collapse

Instance Method Details

#image {|normalized(@delegate.image) || DEFAULT_IMAGE| ... } ⇒ Object

Yields:



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

def image(&block)
  yield(normalized(@delegate.image) || DEFAULT_IMAGE) if @delegate.respond_to? :image
end