29 Sep '12, 8am
A copy of XX has been removed from the module tree but is still active! - Ruby Forum:
> I bet if you switched to production mode it would work. What I think > is happening is: > > - request calls Tracker.go > - Rails unloads loaded classes (since we're in dev mode) > - You threads continue to run trying to use classes that rails has > unloaded. Chaos ensues. > > Fred Bingo! Putting my application in production mode allowed me to make continual requests. It, however, doesn't solve the problem though. Problem: I've got a module (AccessControl) in RAILS_ROOT/lib that extends my controllers (which inherit from ResourceController) and adds functionality to AuthenticatedSystem. In development mode, this works fine via requests through the browser. However, once I try to consume the resources with ActiveResource, the first request succeeds and the next request fails with the following error: ArgumentError (A copy of AccessControl has been removed from the module t...