Module: Alchemy::Admin::PicturesHelper

Defined in:
app/helpers/alchemy/admin/pictures_helper.rb

Instance Method Summary collapse

Instance Method Details

#preview_size(size) ⇒ Object


6
7
8
9
10
11
# File 'app/helpers/alchemy/admin/pictures_helper.rb', line 6

def preview_size(size)
  Alchemy::Picture::THUMBNAIL_SIZES.fetch(
    size,
    Alchemy::Picture::THUMBNAIL_SIZES[:medium]
  )
end