{"issue":{"state":"open","created_at":"2011-12-06T23:05:55Z","updated_at":"2011-12-06T23:05:55Z","user":{"gravatar_id":"232e7db86d885ef6e0ed801c506a8f82","id":154571,"url":"https://api.github.com/users/mikz","login":"mikz","avatar_url":"https://secure.gravatar.com/avatar/232e7db86d885ef6e0ed801c506a8f82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"I had following issue with Spree 0.70.3:\r\n\r\nspree_promo has to_prepare call, which calls alias_method_chain\r\nwhen code wasn't reloaded - to_prepare call was called and creating another alias_method_chain\r\nresulting in infinite recursion\r\n\r\nI 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.\r\n\r\nThis multi to_prepare loading without proper cleaning can result in weird errors... I spent almost 7 hours tracking it down. \r\n\r\nHere is my solution - https://gist.github.com/1440449\r\n\r\nFeel free to use it if you want.","assignee":null,"id":2468842,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":15,"title":"prepare called even when not cleaned","closed_at":null,"html_url":"https://github.com/paneq/active_reload/issues/15","url":"https://api.github.com/repos/paneq/active_reload/issues/15","milestone":null},"action":"opened"}