lib/golden_fleece/utility.rb in golden_fleece-0.1.3 vs lib/golden_fleece/utility.rb in golden_fleece-0.1.4

- old
+ new

@@ -11,10 +11,10 @@ end # Copied from ActiveModel::Type::Boolean # https://github.com/rails/rails/blob/master/activemodel/lib/active_model/type/boolean.rb def cast_boolean(value) - if value == "" + if value == "" || value == nil nil else !FALSE_VALUES.include?(value) end end