Refactor with_account and without_account methods

Remove variables name for block, not needed from Ruby >= 3.1
This commit is contained in:
Javier Valencia
2025-12-03 12:26:39 +01:00
committed by GitHub
parent def487208c
commit 0d83e9b90c
+4 -4
View File
@@ -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