From 11a21f19310bf72c6bc75efb1ad66030d2b4d1a7 Mon Sep 17 00:00:00 2001 From: Vera Olsson Date: Fri, 29 Nov 2024 12:17:05 +0100 Subject: [PATCH] Freeze OPTION_NOT_GIVEN --- activemodel/lib/active_model/attribute_mutation_tracker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/lib/active_model/attribute_mutation_tracker.rb b/activemodel/lib/active_model/attribute_mutation_tracker.rb index a683a94ff7ae2..239c6a9353cf9 100644 --- a/activemodel/lib/active_model/attribute_mutation_tracker.rb +++ b/activemodel/lib/active_model/attribute_mutation_tracker.rb @@ -5,7 +5,7 @@ module ActiveModel class AttributeMutationTracker # :nodoc: - OPTION_NOT_GIVEN = Object.new + OPTION_NOT_GIVEN = Object.new.freeze def initialize(attributes) @attributes = attributes