solnic/virtus — Issue #34: what happens when data-type conversions fail
Author: senny
Created: 2011-11-15 08:37:11+00:00
State: open

the current behaviour seems to just assign the set value. This could be dangerous when you expect the attributes to contain data of the right type.

```ruby
class Example
include Virtus
attribute :my_date, Date
end

e = Example.new
e.my_date = 'test'
e.my_date # => 'test'
```