Commit c59150c04114682e4866e6806ec19d72dc96fd76

Authored by Nathan Broadbent
1 parent 6b076cfe
Exists in master and in 1 other branch production

Fix premailer issues by reading CSS file into a style tag, instead of trying to …

…use stylesheet_link_tag
Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
app/views/layouts/mailer.html.haml
1 1 %html
2 2 %head
3 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4   - = stylesheet_link_tag 'mailers/mailer'
  4 + =# stylesheet_link_tag 'mailers/mailer'
  5 + -# Include CSS inline
  6 + %style
  7 + = File.read(Rails.root.join('public/stylesheets/mailers/mailer.css'))
5 8 %body(leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0")
6 9 %center
7 10 %table(cellpadding="0" cellspacing="0" border="0" width="100%")
... ...