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"