You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
tcannonfodder
changed the title
ActionView::Helpers::AssetTagHelper breaks if the request object is nil
ActionView::Helpers::AssetTagHelper javascript/css link helpers break if the request object is nil
Nov 28, 2017
Steps to reproduce
mailer.html.erb
)stylesheet_link_tag
in the layout (e.g:<%= stylesheet_link_tag "mailer", media: "all" %>
)Expected behavior
The link should be generated without an exception, and without early hints.
Actual behavior
The helper attempts to call
request.send_early_hints
, which raises an exception becauserequest
isnil
: https://github.com/rails/rails/blob/v5.2.0.beta2/actionview/lib/action_view/helpers/asset_tag_helper.rb#L143System configuration
Rails version: 5.2.0.beta2
Ruby version: Ruby 2.4.0
The text was updated successfully, but these errors were encountered: