brunofrank/class-table-inheritance — Issue #16: Polymorphic behavior not working on Model.all iteration
Author: mackerel
Created: 2011-10-17 03:09:23+00:00
State: open

I've created a superclass model called AssetField and a subclass, AssetFieldShortText. The AssetFieldShortText model has a property called "default_value". If I call:

```
field = AssetField.find(1)
field.default_value
```

it works without issue. But if I try to say:

```
fields = AssetField.all
fields.first.default_value
```

I get an "unknown method" error. Am I missing something?