-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add dedicated build in rails environment loading #1129
base: main
Are you sure you want to change the base?
Conversation
6f7ac46
to
0f353e0
Compare
0f353e0
to
8582a57
Compare
|
||
def add_rails_matchers | ||
# This logic sucks, instead rails should be come a match expression | ||
# possibly allow match expressions like: `ActionController.subclasses` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So expressions of the form $Constant.$method
would expect to call a method on an object that returns the actual subclasses.
And: $Constant{,.$method}
would match both the constant and the classes returned by the subclass.
We'd than still need an expression for the "entirety" of rails owned constants which could be: <Rails>
or similar.
8582a57
to
3c64424
Compare
ApplicationController, | ||
*ApplicationController.subclasses, | ||
ApplicationRecord, | ||
*ApplicationRecord.subclasses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is likely way more that should be included in here.
3c64424
to
62f3263
Compare
No description provided.