Ooops, solved it! Was a problem with a migration...
On May 23, 2:01 pm, nico
<nico.rits...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:> Hi,
>
> I''m having trouble with someSTIClasses in a test.
>
> When I create a new Class of anSTIderived base class
> the type column is not set.
>
> If I do
>
> object = DerivedClass.create!(params)
>
> then object[:type] == nil for some reason.
>
> Any ideas why this is so? I assumed rails takes
> care of setting the type column inSTI(that''s what I read).
>
> Nico