The latest version of letter_opener doesn't work with the latest version of actionmailer when being used standalone (without Rails). I believe the reason is that the "Rails" constant is being defined by actionmailer (or rather by rails-html-sanitizer).
This PR fixes that by also checking for "Rails::Railtie". Not a nice fix, but works.
The latest version of letter_opener doesn't work with the latest version of actionmailer when being used standalone (without Rails). I believe the reason is that the "Rails" constant is being defined by actionmailer (or rather by rails-html-sanitizer).
This PR fixes that by also checking for "Rails::Railtie". Not a nice fix, but works.
@ryanb @davidcornu please take a quick look