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.

@mbj mbj added the rails label Dec 1, 2020
@mbj mbj force-pushed the rails/environment branch from 6f7ac46 to 0f353e0 Compare December 1, 2020 15:29
@mbj mbj force-pushed the rails/environment branch from 0f353e0 to 8582a57 Compare December 2, 2020 04:58

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.

@mbj mbj force-pushed the rails/environment branch from 8582a57 to 3c64424 Compare December 2, 2020 05:01
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.

1 participant