paneq/active_reload — Issue #15: prepare called even when not cleaned
Author: mikz
Created: 2011-12-06 23:05:55+00:00
State: open

I had following issue with Spree 0.70.3:

spree_promo has to_prepare call, which calls alias_method_chain
when code wasn't reloaded - to_prepare call was called and creating another alias_method_chain
resulting in infinite recursion

I made simples working solution for Rails 3.1. From what I saw it shouldn't be hard to get it working in Rails 3.0.

This multi to_prepare loading without proper cleaning can result in weird errors... I spent almost 7 hours tracking it down.

Here is my solution - https://gist.github.com/1440449

Feel free to use it if you want.