From d1170ddd41e5e88c94dd1c4d7dde2c4212d265c1 Mon Sep 17 00:00:00 2001 From: pavel Date: Thu, 5 Oct 2017 23:34:58 +0200 Subject: request check --- actionview/lib/action_view/helpers/asset_tag_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/lib') diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index f4f1030ac4..10b366b030 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -91,7 +91,7 @@ module ActionView content_tag("script".freeze, "", tag_options) }.join("\n").html_safe - request.send_early_hints("Link" => early_hints_links.join("\n")) + request.send_early_hints("Link" => early_hints_links.join("\n")) if respond_to?(:request) sources_tags end @@ -140,7 +140,7 @@ module ActionView tag(:link, tag_options) }.join("\n").html_safe - request.send_early_hints("Link" => early_hints_links.join("\n")) + request.send_early_hints("Link" => early_hints_links.join("\n")) if respond_to?(:request) sources_tags end -- cgit v1.2.3