Comments (6)
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 super
should only be calling inherited
at that point, but it looks like it's calling one of the dynamically defined methods from above. No clue why that's happening, but I'm thinking it's probably not expected.
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. :/
from classy_enum.
+1 on this.
from classy_enum.
@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.
from classy_enum.
What a shame. Thanks. Love classy_enum by the way.
from classy_enum.
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.
from classy_enum.
Closed in 963ac91
from classy_enum.
Related Issues (20)
- How to update many records at once? HOT 2
- Rails 4.1 enums HOT 1
- Eager loading with inludes() returns String, not Enum HOT 6
- Enum by default are empty in DB? HOT 4
- Drop support for Ruby 1.8.7 HOT 1
- Drop support for Rails 3.x HOT 1
- Clean up specs
- Clean up how code is injected into Active Record HOT 1
- Remove Arel hacks for Active Record scopes HOT 1
- Problem with default value HOT 7
- Update the readme to include a step about autoload_paths HOT 6
- Uninitialized Constant when Loading Classy Enum in 4.0.0 HOT 3
- Undocumented breaking change (Cannot visit <Enum>) HOT 3
- Question: Using classy enum to query with AR? HOT 6
- Classy_enum with actual enum fields? HOT 1
- Enum inside other Enum HOT 5
- Add support for validation :on and :if options HOT 5
- Rails 5.x update HOT 2
- ClassyEnum build method performance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classy_enum.