Module: Workarea::Storefront::FaviconsHelper

Defined in:
app/helpers/workarea/storefront/favicons_helper.rb

Instance Method Summary collapse

Instance Method Details

#favicon_path(options = {}) ⇒ Object



20
21
22
# File 'app/helpers/workarea/storefront/favicons_helper.rb', line 20

def favicon_path(options = {})
  image_url(dynamic_favicon_path(options))
end

#favicon_tagsObject



4
5
6
7
8
9
10
# File 'app/helpers/workarea/storefront/favicons_helper.rb', line 4

def favicon_tags
  warn "    DEPRECATION WARNING: favicons_helper is deprecated, use\n    `render 'workarea/storefront/favicons/tags'` directly in the layout\n    instead\n  eos\nend\n"

#favicons_path(size, options = {}) ⇒ Object



16
17
18
# File 'app/helpers/workarea/storefront/favicons_helper.rb', line 16

def favicons_path(size, options = {})
  image_url(dynamic_favicons_path(size, options))
end

#favicons_present?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/helpers/workarea/storefront/favicons_helper.rb', line 12

def favicons_present?
  Content::Asset.favicons.count.positive?
end