We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
First of all, thanks for the gem :)
gem
There is an issue when I tried to annotate the models outside the app/models with Zeitwerk folder collapsing.
app/models
Steps to reproduce:
Put the models under app/components/component_name/models,
app/components/component_name/models
Have Zeitwerk to collapse such folder
Zeitwerk
# in config/application Rails.autoloaders.main.collapse("app/components/component_name/models")
Add the models folder to the annotate's gem settings
models
annotate
"model_dir" => "app/models,app/components/component_name/models",
When running db:migrate the gem does not annotate the models under app/components/component_name/models
db:migrate
bundel exec rake db:migrate
The text was updated successfully, but these errors were encountered:
Not sure if this would work for you but similar issue and my solution: #969 (comment)
Sorry, something went wrong.
I took a stab at adding zeitwerk support in my fork, if you want to know more: drwl/annotaterb#82
No branches or pull requests
Hi there,
First of all, thanks for the
gem
:)There is an issue when I tried to annotate the models outside the
app/models
with Zeitwerk folder collapsing.
Steps to reproduce:
Put the models under
app/components/component_name/models
,Have
Zeitwerk
to collapse such folderAdd the
models
folder to theannotate
's gem settingsWhen running
db:migrate
the gem does not annotate the models underapp/components/component_name/models
Commands
Version
The text was updated successfully, but these errors were encountered: