From 777033ae7941cff9efc65b0adf2cd0312a302c2d Mon Sep 17 00:00:00 2001 From: Nick Muerdter <12112+GUI@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:43:04 -0400 Subject: [PATCH] Fix for Rubocop updates. --- test/support/models/admin.rb | 2 +- test/support/models/admin_group.rb | 2 +- test/support/models/api_backend.rb | 2 +- test/support/models/api_user.rb | 2 +- test/support/models/api_user_settings.rb | 2 +- test/support/models/rate_limit.rb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/support/models/admin.rb b/test/support/models/admin.rb index 900714a0f..01f637bb8 100644 --- a/test/support/models/admin.rb +++ b/test/support/models/admin.rb @@ -44,6 +44,6 @@ def serializable_hash(options = nil) :group_ids, ], }) - super(options) + super end end diff --git a/test/support/models/admin_group.rb b/test/support/models/admin_group.rb index 4d8556374..7f1e4a7c3 100644 --- a/test/support/models/admin_group.rb +++ b/test/support/models/admin_group.rb @@ -14,6 +14,6 @@ def serializable_hash(options = nil) :permissions => {}, }, }) - super(options) + super end end diff --git a/test/support/models/api_backend.rb b/test/support/models/api_backend.rb index d9717c514..f248f3dc9 100644 --- a/test/support/models/api_backend.rb +++ b/test/support/models/api_backend.rb @@ -51,6 +51,6 @@ def serializable_hash(options = nil) :rewrites => {}, }, }) - super(options) + super end end diff --git a/test/support/models/api_user.rb b/test/support/models/api_user.rb index 39eba5913..9f77f8b83 100644 --- a/test/support/models/api_user.rb +++ b/test/support/models/api_user.rb @@ -72,6 +72,6 @@ def serializable_hash(options = nil) }, }, }) - super(options) + super end end diff --git a/test/support/models/api_user_settings.rb b/test/support/models/api_user_settings.rb index 98afab323..25a114e52 100644 --- a/test/support/models/api_user_settings.rb +++ b/test/support/models/api_user_settings.rb @@ -3,7 +3,7 @@ class ApiUserSettings < ApplicationRecord has_many :rate_limits, -> { order(:duration, :limit_by, :limit_to) } def serializable_hash(options = nil) - hash = super(options) + hash = super if hash["allowed_ips"] hash["allowed_ips"].map! { |ip| ip.to_s } end diff --git a/test/support/models/rate_limit.rb b/test/support/models/rate_limit.rb index 810980ddd..123c4cec7 100644 --- a/test/support/models/rate_limit.rb +++ b/test/support/models/rate_limit.rb @@ -1,6 +1,6 @@ class RateLimit < ApplicationRecord def serializable_hash(options = nil) - data = super(options) + data = super data["limit"] = data.delete("limit_to") if data["limit_by"] == "api_key" data["limit_by"] = "apiKey"