Skip to content

Commit 65afe78

Browse files
authored
Merge pull request rails#53781 from Shopify/surkova/freeze-option-not-given
Freeze OPTION_NOT_GIVEN
2 parents 52f9e4f + 11a21f1 commit 65afe78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/attribute_mutation_tracker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module ActiveModel
77
class AttributeMutationTracker # :nodoc:
8-
OPTION_NOT_GIVEN = Object.new
8+
OPTION_NOT_GIVEN = Object.new.freeze
99

1010
def initialize(attributes)
1111
@attributes = attributes

0 commit comments

Comments
 (0)