The problem here, is that you do not always want to run the ruby code very time you save.

Instead, you need to pass a callback into the saveCode method.