mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Fix warning: deprecated Object#=~ is called
This commit is contained in:
@@ -123,7 +123,7 @@ module Spree
|
||||
if value.is_a?(FalseClass) ||
|
||||
value.nil? ||
|
||||
value == 0 ||
|
||||
value =~ /^(f|false|0)$/i ||
|
||||
(value.is_a?(String) && value =~ /^(f|false|0)$/i) ||
|
||||
(value.respond_to?(:empty?) && value.empty?)
|
||||
false
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user