-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wierd failure when using with jruby #36
Comments
Thanks for reporting! This seems like an incompatibility between the C Ruby API and JRuby. Unfortunately the piece of code that is raising the exception is just a hack to get around some issues with ActiveRecord and Arel. I'd love to get rid of that code, but it would break backwards compatibility with older versions of the gem and I'm not sure I want to do that just yet. FWIW the offending line is here and I'm going to open an issue in the JRuby project and leave this open for a bit, but I wouldn't count on it being fixed any time soon seeing as there are close to 400 open issues. :/ |
+1 on this. |
@nicbor I spent a bunch of time tracking down the issue and it's out of my control. Feel free to nudge the folks on the JRuby project, but good luck since it seems like things are pretty stagnant over there these days. |
What a shame. Thanks. Love classy_enum by the way. |
For the time being, you could always fork the repo and remove these lines if this is a roadblocker. In the future I would like to eliminate that hack, but haven't been able to find a solution that works with all versions of Rails that this project supports. |
Removes lines 42 -> 62 to resolve an issue with jruby until beerlington#36 is resolved.
Closed in 963ac91 |
Hello,
I'm using gem version 3.4.0 and on ruby 2.0 it works well, but with jruby 1.7.11 fails.
Here is my app/enums/status.rb:
Here is a stack trace.
I see you're supporting only CRuby, but probably can help.
The text was updated successfully, but these errors were encountered: