Module: Locomotive::Shared::SitesHelper

Defined in:
app/helpers/locomotive/shared/sites_helper.rb

Instance Method Summary collapse

Instance Method Details

#site_picture_url(site, size = '80x80#') ⇒ Object


5
6
7
8
9
10
11
# File 'app/helpers/locomotive/shared/sites_helper.rb', line 5

def site_picture_url(site, size = '80x80#')
  if site && site.picture?
    Locomotive::Dragonfly.resize_url site.picture.url, size
  else
    'locomotive/site.png'
  end
end