module Interage::FaviconHelper

Constants

EXTENTION
FAVICON_SIZES
FILE_NAME

Public Instance Methods

favicon_options(size) click to toggle source
# File lib/interage/favicon_helper.rb, line 23
def favicon_options(size)
  { type: 'image/png', rel: 'apple-touch-icon', sizes: handler_size(size) }
end
handler_name(size) click to toggle source
# File lib/interage/favicon_helper.rb, line 19
def handler_name(size)
  "#{FILE_NAME}#{handler_size(size, '-')}.#{EXTENTION}"
end
handler_size(size, prefix = '') click to toggle source
# File lib/interage/favicon_helper.rb, line 27
def handler_size(size, prefix = '')
  "#{prefix}#{size}x#{size}" if size.present?
end