lib/rubocop/cop/rails/transaction_exit_statement.rb in rubocop-rails-2.17.4 vs lib/rubocop/cop/rails/transaction_exit_statement.rb in rubocop-rails-2.18.0
- old
+ new
@@ -43,11 +43,9 @@
# # good
# ApplicationRecord.transaction do
# # Commit
# next if user.active?
# end
- #
- # @see https://github.com/rails/rails/commit/15aa4200e083
class TransactionExitStatement < Base
MSG = <<~MSG.chomp
Exit statement `%<statement>s` is not allowed. Use `raise` (rollback) or `next` (commit).
MSG