zeitwerk Questions
3
I currently have the following files in the jobs directory:
# app/jobs/importer.rb
module Imporer
def self.valid_importers
# Do stuff
end
end
# app/jobs/importer/custom_import_job.rb
class Imp...
Swagsman asked 23/3, 2020 at 13:3
3
Solved
I swear I've read the docs and I think I have a basic understanding of the principles, but I can't for the life of me figure out where I'm loading these constants inappropriately.
I'm working to up...
Marlite asked 1/3, 2021 at 17:16
1
I recently upgraded my rails application to rails 7 and after upgrading when I try to call the call from the lib folder I am getting this error NameError (uninitialized constant Error)
I have follo...
History asked 16/4, 2023 at 10:11
1
Solved
Background:
I am getting some reloading errors in development when switching to Zeitwerk for a rails 6.0 application that uses an engine (thredded). I'm also a developer on thredded, so want to und...
Hagride asked 25/11, 2022 at 18:13
2
Solved
I'm upgrading our app from rails 6 to 7, I was using zeitwerk instead of the classic autoloader with rails 6 without any issues, now without any changes to the folder/file naming convention or stru...
Makeyevka asked 2/3, 2022 at 6:39
3
The Rails 6+ default autoloader is zeitwerk, which seems like a great improvement over previous approaches.
However, zeitwork follows the convention for Rails projects that anything in app/* is au...
Afloat asked 21/11, 2019 at 18:52
2
Solved
I am currently migrating an old Rails application to Rails 6.
It seems that some files in the project are not consistent with the classes defined in it.
I don't see this error when running the test...
Henebry asked 16/9, 2020 at 20:55
1
Solved
I'm a bit late with Rails version upgrade. What surprised me was a bunch of active_support requires in config/environment/* files generated by Rails.
What are they for? Does it have something to do...
Gley asked 22/5, 2021 at 11:44
2
I recently changed my laptop and tried installing rails with
gem install rails
and I got this error
ERROR: Error installing rails:
zeitwerk requires Ruby version >= 2.4.4.
I have installe...
Gentille asked 18/12, 2019 at 17:6
1
How do I extend a class that is defined by a gem when I'm using rails 6 / zeitwerk?
I've tried doing it in an initializer using require to load up the class first.
I've tried doing it in an initia...
Principate asked 14/11, 2019 at 21:21
1
© 2022 - 2024 — McMap. All rights reserved.