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
|