diff --git a/app/models/spree/payment_method.rb b/app/models/spree/payment_method.rb index b66d8d239b..50fbb69158 100644 --- a/app/models/spree/payment_method.rb +++ b/app/models/spree/payment_method.rb @@ -93,8 +93,8 @@ module Spree type.demodulize.downcase end - def self.find_with_destroyed(*args) - unscoped { find(*args) } + def self.find_with_destroyed(*) + unscoped { find(*) } end def payment_profiles_supported? diff --git a/lib/reporting/reports/enterprise_fee_summary/scope.rb b/lib/reporting/reports/enterprise_fee_summary/scope.rb index 5aa518f5c4..f678a5750b 100644 --- a/lib/reporting/reports/enterprise_fee_summary/scope.rb +++ b/lib/reporting/reports/enterprise_fee_summary/scope.rb @@ -392,9 +392,9 @@ module Reporting end end - def filter_scope(*args) + def filter_scope(*) chain_to_scope do - where(*args) + where(*) end end end diff --git a/spec/support/performance_helper.rb b/spec/support/performance_helper.rb index f0236997fb..8967258717 100644 --- a/spec/support/performance_helper.rb +++ b/spec/support/performance_helper.rb @@ -2,12 +2,12 @@ module OpenFoodNetwork module PerformanceHelper - def multi_benchmark(num_samples, cache_key_patterns: [], &block) + def multi_benchmark(num_samples, cache_key_patterns: [], &) results = (0..num_samples).map do |_i| ActiveRecord::Base.connection.query_cache.clear delete_cache_keys(cache_key_patterns) - result = Benchmark.measure(&block) + result = Benchmark.measure(&) puts result diff --git a/spec/system/admin/enterprises/dfc_permissions_spec.rb b/spec/system/admin/enterprises/dfc_permissions_spec.rb index 7c86f6ed0f..b88c4e0d48 100644 --- a/spec/system/admin/enterprises/dfc_permissions_spec.rb +++ b/spec/system/admin/enterprises/dfc_permissions_spec.rb @@ -68,9 +68,9 @@ RSpec.describe "DFC Permissions", feature: "cqcm-dev", vcr: true do end end - def within_platform_list(variant, &block) + def within_platform_list(variant, &) retry_expectations(on: Ferrum::JavaScriptError) do - within(platform_list(variant), &block) + within(platform_list(variant), &) end end