jcasimir/draper — pull request #69 by bdotdub (2011-10-28 17:38:13+00:00)
Title: Include `Draper::ViewContextFilter` in `ActionMailer::Base`

Currently, `h` will be `nil` when trying to use a decorator in an `ActionMailer::Base`. This pull request includes `Draper::ViewContextFilter` into `ActionMailer::Base` so that `set_view_context` is available to be called.

Since `ActionMailer::Base` doesn't have a `before_filter`, `set_view_context` will have to be called manually. Not the cleanest/most seamless integration, but it will at least work be available to be used in action mailers.

Any ideas about how we can get it into `ActionMailer::Base`s without having to manually run `set_view_context`?