fabrik42/acts_as_api — Issue #59: Duplicate template on inheritance
Author: pehrlich
Created: 2012-02-22 19:30:34+00:00
State: open

Hello!

With STI, the current default behavior is such that any additions to the inherited template will reflect on the root template as well.

I don't know if this behavior is preferred or accidental, but it can cause the following error when rendering:

can't add a new key into hash during iteration

The fix is simple, shown here:

https://github.com/pehrlich/acts_as_api/commit/ec297ad41066139a426a5a1727ce42d805d23741

But I haven't make a pull request because I have several other commits stacked on that branch as well.