From 0d83e9b90c5c8cba2e76764bddd4cf0f3a351983 Mon Sep 17 00:00:00 2001 From: Javier Valencia Date: Wed, 3 Dec 2025 12:26:39 +0100 Subject: [PATCH] Refactor with_account and without_account methods Remove variables name for block, not needed from Ruby >= 3.1 --- app/models/current.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/current.rb b/app/models/current.rb index e40fc3156..47f2b6c21 100644 --- a/app/models/current.rb +++ b/app/models/current.rb @@ -12,11 +12,11 @@ class Current < ActiveSupport::CurrentAttributes end end - def with_account(value, &block) - with(account: value, &block) + def with_account(value, &) + with(account: value, &) end - def without_account(&block) - with(account: nil, &block) + def without_account(&) + with(account: nil, &) end end