Skip to content

Commit 2613fee

Browse files
committed
[Fix rubocop#779] Add mail to AllowedMethods of Style/SymbolProc
Fixes rubocop#779. This PR adds `mail` to `AllowedMethods` of `Style/SymbolProc`. `define_methods` and `respond_to` inherit from RuboCop core.
1 parent 4289731 commit 2613fee

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#779](https://github.com/rubocop/rubocop-rails/issues/779): Add `mail` to `AllowedMethods` of `Style/SymbolProc`. ([@koic][])

config/default.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,3 +1123,9 @@ Rails/WhereNotWithMultipleConditions:
11231123
# Accept `redirect_to(...) and return` and similar cases.
11241124
Style/AndOr:
11251125
EnforcedStyle: conditionals
1126+
1127+
Style/SymbolProc:
1128+
AllowedMethods:
1129+
- define_method
1130+
- mail
1131+
- respond_to

0 commit comments

Comments
 (0)