Just leaving this as a note, it currently doesn't impact me a lot.
I am not sure whether this is a coercible or a virtus problem, but I see this behaviour in current master:
class Foo
include Virtus
attribute :date, Date
attribute :float, Float
end
Foo.new(:date => "")
# => Coercible::UnsupportedCoercion...
Foo.new(:float => "") # or "134a", etc.
# => #<Foo:0x000001016d3240 @float="", @date=nil>
With strict coercion, I would expect the second example to fail with the same reason as the first.
Just leaving this as a note, it currently doesn't impact me a lot.
I am not sure whether this is a coercible or a virtus problem, but I see this behaviour in current
master
:With strict coercion, I would expect the second example to fail with the same reason as the first.