rubocop-rails icon indicating copy to clipboard operation
rubocop-rails copied to clipboard

Add new `Rails/MailerPreviews` cop

Open fatkodima opened this issue 3 years ago • 4 comments

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.

fatkodima avatar Mar 27 '22 00:03 fatkodima

FWIW I'd love to have this!

bdewater avatar Oct 26 '23 20:10 bdewater

@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! 🙏

bdewater avatar Nov 15 '23 14:11 bdewater

Rebased.

fatkodima avatar Nov 15 '23 15:11 fatkodima