Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

mbj
Copy link
Owner

@mbj mbj commented Dec 1, 2020

No description provided.


def add_rails_matchers
# This logic sucks, instead rails should be come a match expression
# possibly allow match expressions like: `ActionController.subclasses`
Copy link
Owner Author

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.

ApplicationController,
*ApplicationController.subclasses,
ApplicationRecord,
*ApplicationRecord.subclasses
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant