Skip to content

Commit

Permalink
Add workaround for broken upstream premailer-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
egh committed Apr 12, 2016
1 parent 17e471a commit d601988
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/layouts/mailer.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html class="outer-wrapper">
<head>
<%= stylesheet_link_tag DEFAULT_MAILER_STYLESHEET, media: "all" %>
<%# hack to work around https://github.com/fphilipe/premailer-rails/issues/145 %>
<link rel="stylesheet"
href="<%= (Rails.application.config.assets.compile ? DEFAULT_MAILER_STYLESHEET : File.join('/assets', Rails.application.assets_manifest.assets["#{DEFAULT_MAILER_STYLESHEET}.css"])) %>">
</head>
<body class="inner-wrapper">
<div class="mailer">
Expand Down

0 comments on commit d601988

Please sign in to comment.