27 outubro, 2006

Nitro STI

Today I spend the whole afternoon chasing a bug in Nitro documentation. Yes, there was nothing wrong with Nitro, but all docs available in the net were worng!! I was trying to make a model to implement a STI. Everywhere I looked up said that I should do

class ParentClass
is InheritanceBase
end


But it never worked, so after the whole afternoon searching the wiki and oxyliquit I looked into the testcases to find that the right code would be

class ParentClass
is Og::SchemaInheritanceBase
end



The lesson learned is that one should trust the testcases over the wiki!! I will start my search there when I find myself in trouble again. BTW the wiki is right now!!

Nenhum comentário: