Почему вызов super в PostSerializer#raw вызывает ошибку 500, а вызов object.raw работает?

This is a feature of Ruby. When you use class ::PostSerializer, you are overriding the definition in the original class instead of inheriting from it. Because you are not inheriting from PostSerializer, super cannot find the corresponding method.

You should use prepend instead of reopening an already defined class.

4 лайка