solnic/virtus — Issue #26: Not possible to create anonymous classes to create boxed attribute types
Author: d11wtq
Created: 2011-10-11 04:27:52+00:00
State: open

See gist:

https://gist.github.com/1277089

In short, the following causes global breakage in Virtus:

``` ruby
class Whatever < Virtus::Attribute::Object; end

Class.new(Whatever)
```

From that point on, all virtus attributes are considered to be of the 'Whatever' type, due to the way TypeLookup works.