style(rubocop): Style/WordArray

This commit is contained in:
Adam Cooke
2024-02-10 22:39:43 +00:00
parent 129dffab9e
commit bd85920565
11 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ class HTTPEndpoint < ApplicationRecord
has_many :routes, as: :endpoint
has_many :additional_route_endpoints, dependent: :destroy, as: :endpoint
ENCODINGS = ["BodyAsJSON", "FormData"].freeze
FORMATS = ["Hash", "RawMessage"].freeze
ENCODINGS = %w[BodyAsJSON FormData].freeze
FORMATS = %w[Hash RawMessage].freeze
before_destroy :update_routes