Module: RespondHelper

Defined in:
lib/app/helpers/respond_helper.rb

Instance Method Summary collapse

Instance Method Details

#respond_include_tagsObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/app/helpers/respond_helper.rb', line 3

def respond_include_tags
  tags = [javascript_include_tag(:respond)]

  unless ActionController::Base.asset_host.nil?
    tags << tag('link', {href: asset_path('respond-proxy.html'), id: 'respond-redirect', rel: 'respond-redirect'})
    tags << tag('link', {href: image_path('respond.proxy.gif'), id: 'respond-redirect', rel: 'respond-redirect'})
    tags << javascript_include_tag(javascript_path('respond.proxy.js'))
  end

  tags.join("\n").html_safe
end