Skip to content

Commit 88b66b1

Browse files
authored
Merge pull request #2209 from koic/enable_style_explicit_block_argument_cop
Enable `Style/ExplicitBlockArgument` cop
2 parents 6261629 + 712f06e commit 88b66b1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ Style/DefWithParentheses:
125125
Style/MethodDefParentheses:
126126
Enabled: true
127127

128+
Style/ExplicitBlockArgument:
129+
Enabled: true
130+
128131
Style/FrozenStringLiteralComment:
129132
Enabled: true
130133
EnforcedStyle: always

lib/active_record/connection_adapters/oracle_enhanced/procedures.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def destroy_using_custom_method
185185
freeze
186186
end
187187

188-
def log_custom_method(*args)
189-
self.class.connection.send(:log, *args) { yield }
188+
def log_custom_method(*args, &block)
189+
self.class.connection.send(:log, *args, &block)
190190
end
191191

192192
alias_method :update_record, :_update_record if private_method_defined?(:_update_record)

0 commit comments

Comments
 (0)