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 97672a025e..52b8736409 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1126,3 +1126,9 @@ Rails/WhereNotWithMultipleConditions: # Accept `redirect_to(...) and return` and similar cases. Style/AndOr: EnforcedStyle: conditionals + +Style/SymbolProc: + AllowedMethods: + - define_method + - mail + - respond_to