question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating Zeitwerk to `2.5.0.beta2` breaks loading of resources

See original GitHub issue

After updating Zeitwerk to 2.5.0.beta2, Rails expects Madmin resources to be namespaced.

For example, madmin/resources/customer_resource is expected to define Resources::CustomerResource.

The actual error on build:

Zeitwerk::NameError: expected file /app/app/madmin/resources/customer_resource.rb to define constant Resources::CustomerResource, but didn't

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
excid3commented, Sep 23, 2021

This took some serious time to figure out but I got it working. 🔥

1reaction
excid3commented, Sep 23, 2021

I had to dig through the Rails source code to figure it out. Couldn’t find any examples or anything. The previous stuff was what I had found in a blog post, but this works consistently across all Rails versions using before_configuration. I didn’t even know that was a callback you could use until I started reading the Rails source. 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a fix for the "Could not find *gem* in any of the sources ...
After googling this error, the response seems to be to delete Gemfile.lock , then running bundle again. This works, but then I have...
Read more >
Compare Packages Between Distributions - DistroWatch.com
Complete summaries of the Gentoo Linux and Debian projects are available. Note: In case where multiple versions of a package are shipped with...
Read more >
Debian -- Source Packages in "sid", Subsection misc
... eclipse-linuxtools (8.1.0+dfsg.1-1); eclipse-platform-debug (4.21-1); eclipse-platform-resources (4.21-1); eclipse-platform-runtime (4.21-1) ...
Read more >
October 2019 - devel - Fedora Mailing-Lists
RPMs: php-mock-phpunit2 Size: 15.52 KiB Size change: 684 B Changelog: * Mon Oct 07 2019 Remi Collet <remi(a)remirepo.net> - 2.5.0-1 - update ......
Read more >
Active questions tagged redis+ruby-on-rails - Stack Overflow
Update 1: Asked on Sidekiq's Github issues and was adviced go write Heroku support ... Rails.cache.read(:recently_removed_lot_ids) break if lot_ids.present?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found