style(rubocop): Style/MutableConstant

This commit is contained in:
Adam Cooke
2024-02-10 17:34:29 +00:00
parent d508772a40
commit 129dffab9e
14 changed files with 21 additions and 24 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"]
FORMATS = ["Hash", "RawMessage"]
ENCODINGS = ["BodyAsJSON", "FormData"].freeze
FORMATS = ["Hash", "RawMessage"].freeze
before_destroy :update_routes