Fixed bug that prevented correct handling of internal events for a Rails application in development mode