rubocop-rails
rubocop-rails copied to clipboard
Add new `Rails/MailerPreviews` cop
Closes #654
Currently, rails supports only single preview path: https://github.com/rails/rails/blob/af0733a8e7ceddf6b9128ad2aaf4f74c5b427c43/actionmailer/lib/action_mailer/railtie.rb#L28
In the future, this will change: https://github.com/rails/rails/pull/31595
So I created PreviewPaths config as an array.
FWIW I'd love to have this!
@koic this PR seems to have been missed, I'd still love to have it. Any chance you could review when you have time? Thanks! 🙏
Rebased.