From 34cff2004e26ed60563667c72f981e9454f9a358 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 16 Sep 2022 01:31:45 +0900 Subject: [PATCH] [Fix #779] Add `mail` to `AllowedMethods` of `Style/SymbolProc` Fixes #779. This PR adds `mail` to `AllowedMethods` of `Style/SymbolProc`. --- ...change_add_mail_to_allowed_methods_of_style_symbol_proc.md | 1 + config/default.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md diff --git a/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md b/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md new file mode 100644 index 0000000000..b8f64ff046 --- /dev/null +++ b/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md @@ -0,0 +1 @@ +* [#779](https://github.com/rubocop/rubocop-rails/issues/779): Add `mail` to `AllowedMethods` of `Style/SymbolProc`. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 9df5c93901..73917d64a3 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1123,3 +1123,7 @@ Rails/WhereNotWithMultipleConditions: # Accept `redirect_to(...) and return` and similar cases. Style/AndOr: EnforcedStyle: conditionals + +Style/SymbolProc: + AllowedMethods: + - mail