ctran/annotate_models — pull request #85 by djreimer (2012-07-17 07:38:05+00:00)
Title: JRuby compatibility

When I attempt to run in JRuby, the follow error occurs:

```
RuntimeError: ObjectSpace is disabled; each_object will only work with Class, pass -X+O to enable each_object at org/jruby/RubyObjectSpace.java:167
```

By default, `ObjectSpace.each_object` is disabled in JRuby for [performance reasons](https://github.com/jruby/jruby/wiki/PerformanceTuning). However, `ObjectSpace.each_object(Class)` still works without enabling on the whole enchilada. I made this change and all the specs pass on MRI and JRuby, except for the integration tests (I'm having trouble getting the integration tests to pass on my machine even without the patch). Perhaps someone could verify that those pass as well.