Updating Zeitwerk to `2.5.0.beta2` breaks loading of resources
See original GitHub issueAfter 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:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This took some serious time to figure out but I got it working. 🔥
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. 😅