Replies: 2 comments 3 replies
-
If you have a circular require situation, then yes, you are doing it wrong. This isn't a Sequel issue, this is a general Ruby issue. You can guard requires |
Beta Was this translation helpful? Give feedback.
1 reply
-
Well, turns out that the circular dependency issue doesn't get solved with the proposed solution, since the class is still not fully loaded (and thus not defined) at the point where it conflicts. I will simply load all classes beforehand. I'll leave this open a couple days, just in case. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tend to use require to make Sequel aware of classes when moving from a parent to a child and vice versa.
But the console output yells at me "warning: loading in progress, circular require considered harmful".
Am I doing it wrong?
Beta Was this translation helpful? Give feedback.
All reactions