Skip to content

Commit

Permalink
Enable Style/ExplicitBlockArgument cop
Browse files Browse the repository at this point in the history
Follow up to rails/rails#43170.
  • Loading branch information
koic committed Sep 6, 2021
1 parent 6261629 commit 712f06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -125,6 +125,9 @@ Style/DefWithParentheses:
Style/MethodDefParentheses:
Enabled: true

Style/ExplicitBlockArgument:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always
Expand Down
Expand Up @@ -185,8 +185,8 @@ def destroy_using_custom_method
freeze
end

def log_custom_method(*args)
self.class.connection.send(:log, *args) { yield }
def log_custom_method(*args, &block)
self.class.connection.send(:log, *args, &block)
end

alias_method :update_record, :_update_record if private_method_defined?(:_update_record)
Expand Down

0 comments on commit 712f06e

Please sign in to comment.