Skip to content

Commit

Permalink
Fix for Rubocop updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Jul 8, 2024
1 parent ae18756 commit 777033a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/support/models/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def serializable_hash(options = nil)
:group_ids,
],
})
super(options)
super
end
end
2 changes: 1 addition & 1 deletion test/support/models/admin_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def serializable_hash(options = nil)
:permissions => {},
},
})
super(options)
super
end
end
2 changes: 1 addition & 1 deletion test/support/models/api_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def serializable_hash(options = nil)
:rewrites => {},
},
})
super(options)
super
end
end
2 changes: 1 addition & 1 deletion test/support/models/api_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ def serializable_hash(options = nil)
},
},
})
super(options)
super
end
end
2 changes: 1 addition & 1 deletion test/support/models/api_user_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/support/models/rate_limit.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 777033a

Please sign in to comment.