fphilipe/premailer-rails3 — pull request #18 by coutud (2012-01-28 17:46:49+00:00)
Title: Use asset.source instead of body in css_helper

This should fix issue #17.

It is probably still imperfect, because it includes the css twice in dev mode:

Assuming `email/` directory contains one file `common.css`, and given the following file `email.css` :
```css
/*
* require_self
* require_tree ./email/
*/
```

## In production mode
`stylesheet_link_tag 'email.css'` makes rails generate one file `email.css` which should contain all css files from `email` directory. Using the patch, they get included, everything is fine.

## In dev mode
`stylesheet_link_tag 'email.css'` makes rails include one `` tag for each file (`email.css`, `email/common.css`)
When picked up by the css helper, both will have their full content included (including dependencies), so `common.css` ends up being added twice ...