Skip to content

Commit

Permalink
Merge pull request #35 from jamesds/master
Browse files Browse the repository at this point in the history
Fix cause of ruby 3.4.0-rc1 frozen String deprecation warnings
  • Loading branch information
kenn authored Dec 13, 2024
2 parents 8af79d5 + 4b68a83 commit 25143bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_flag/value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25143bc

Please sign in to comment.