This is in a Rails project, though this is more a generic Ruby question.

I have a "superclass mismatch" error in my project that I can't explain.
Probably a class is being loaded twice, which is wrong but still should
not cause an error. Can anyone explain it?

>> Api::V3::PostDecorator.superclass
=> Api::V3::BaseDecorator

>> class Api::V3::PostDecorator < Api::V3::BaseDecorator; end
!! #<TypeError: superclass mismatch for class PostDecorator>

How is that a mismatch? The superclass is exactly what I am declaring as
I reopen the class.

-- 
Posted via http://www.ruby-forum.com/.