Skip to content

Commit

Permalink
[Fix rubocop#779] Add mail to AllowedMethods of Style/SymbolProc
Browse files Browse the repository at this point in the history
Fixes rubocop#779.

This PR adds `mail` to `AllowedMethods` of `Style/SymbolProc`.
`define_methods` and `respond_to` inherit from RuboCop core.
  • Loading branch information
koic committed Oct 9, 2022
1 parent 4289731 commit 2613fee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#779](https://github.com/rubocop/rubocop-rails/issues/779): Add `mail` to `AllowedMethods` of `Style/SymbolProc`. ([@koic][])
6 changes: 6 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1123,3 +1123,9 @@ Rails/WhereNotWithMultipleConditions:
# Accept `redirect_to(...) and return` and similar cases.
Style/AndOr:
EnforcedStyle: conditionals

Style/SymbolProc:
AllowedMethods:
- define_method
- mail
- respond_to

0 comments on commit 2613fee

Please sign in to comment.