DanKnox/websocket-rails — pull request #50 by nessche (2013-02-28 12:02:45+00:00)
Title: Bug prevents handling of internal event under Rails

There is a bug in `ControllerFactory#reload!` that prevents the handling of internal event when Rails is running in development environment.

The code will try to reload files named `name_of_the_controller.rb`, but as there is no file called `internal_controller.rb`, it will fail when dealing with internal events.

I simply added an unless statement that prevents the reloading of `InternalController`.

Also added a test to `controller_factory_spec.rb` to verify the code. Also I have the same patch running in a dev version of a Rails app of mine and it works.