fabrik42/acts_as_api

Duplicate template on inheritance

pehrlich opened this issue · 1 comments

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:

pehrlich@ec297ad

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

Hey,

sorry for the delay ;(

I didn't face this problem, but your fix makes sense to me.
So if you could isolate this change in a single pull request, I would be happy to merge it in.
I promise to be faster this time!! :)

Cheers,

Chris