Skip to content

Commit

Permalink
cast python False to ruby/rails false
Browse files Browse the repository at this point in the history
  • Loading branch information
timalces committed Mar 27, 2024
1 parent 982d135 commit 0e4451a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/initializers/extended_false_values.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Update list of false values to include Python's False

module ActiveModel::Type
class Boolean
existing_values = FALSE_VALUES.dup
remove_const(:FALSE_VALUES)
FALSE_VALUES = existing_values + ['False', :False]
end
end

0 comments on commit 0e4451a

Please sign in to comment.