From 4b68a83bf430953714751f77389903b5c6756995 Mon Sep 17 00:00:00 2001 From: James Dean Shepherd Date: Fri, 13 Dec 2024 13:59:08 +0000 Subject: [PATCH] Fix cause of ruby 3.4.0-rc1 frozen String deprecation warnings --- lib/active_flag/value.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/active_flag/value.rb b/lib/active_flag/value.rb index e5269ff..9030f30 100644 --- a/lib/active_flag/value.rb +++ b/lib/active_flag/value.rb @@ -48,8 +48,8 @@ def unset?(key) end def method_missing(symbol, *args, &block) - if key = symbol.to_s.chomp!('?') and @definition.keys.include?(key.to_sym) - set?(key.to_sym) + if key = symbol.to_s.chomp('?').to_sym and @definition.keys.include?(key) + set?(key) else super end