Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update initializer to use modern Ruby syntax
This trips over a Rubocop rule on CI: ``` lib/mail/notify/railtie.rb:12:36: W: Lint/SendWithMixinArgument: Use prepend Mail::Notify::MailersController instead of send(:prepend, Mail::Notify::MailersController). Rails::MailersController.send(:prepend, Mail::Notify::MailersController) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` As rubocop/rubocop#7274 explains: > Back in the day (before Ruby 2.1), Module.include and Module.prepend were private methods. So when people authored gems / patched monkeys, they wrote e.g. Foo.send(:include, MyPatch). In our day and age, I think we should encourage everybody to just write Foo.include(MyPatch).
- Loading branch information