diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-26 11:38:30 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-26 12:05:35 +0000 |
commit | 35fd81672e02497c31f0b3cab965f4a38090229a (patch) | |
tree | 950f7215b62424e4b96c1efbfb30ce49a503efde /tools | |
parent | 14d59d2a257aee62c5b02cc18add38fccafad875 (diff) | |
download | rails-35fd81672e02497c31f0b3cab965f4a38090229a.tar.gz rails-35fd81672e02497c31f0b3cab965f4a38090229a.tar.bz2 rails-35fd81672e02497c31f0b3cab965f4a38090229a.zip |
Add the ability to intercept emails before previewing
To support the ability for tools like CSS style inliners to operate on emails
being previewed this commit adds a hook in a similar fashion to the existing
delivery interceptor hook, e.g:
class CSSInlineStyler
def self.previewing_email(message)
# inline CSS styles
end
end
ActionMailer::Base.register_preview_interceptor CSSInlineStyler
Fixes #13622.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions