mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Style arguments forwarding
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user