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

[Admin] Use Rails.application.mounted_helpers in base component #6039

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Dec 18, 2024

Rather than implementing routing proxies ourselves, we can use what Rails offers.

Fixes #6038

Rather than implementing routing proxies ourselves, we can use what
Rails offers.

Fixes solidusio#6038
@mamhoff mamhoff requested a review from a team as a code owner December 18, 2024 16:07

initializer "solidus_admin.routing_proxies" do |app|
ActiveSupport.on_load(:after_routes_loaded) do
SolidusAdmin::BaseComponent.include app.routes.mounted_helpers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL mounted_helpers 🎉

@kennyadsl
Copy link
Member

I don't understand if failures are strictly related but it seems like it's the case.

@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 18, 2024

Absolutely related. Will look into it tomorrow.

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

Successfully merging this pull request may close these issues.

Errors running in Production mode config.eager_load = true
3 participants