Skip to content

Unable to autoload constant ModelCsv, expected app/models/csv_csv.rb to define it #505

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

Closed
Hirurg103 opened this issue Sep 7, 2017 · 1 comment

Comments

@Hirurg103
Copy link

Hirurg103 commented Sep 7, 2017

Env:
rails 5.1.2
annotate: 2.7.2

I have model named ModelCSV. When I run rake db:migrate annotate fails with
Unable to autoload constant ModelCsv, expected app/models/csv_csv.rb to define it

Seems like it expects that csv_csv.rb defines class ModelCsv but actually it defines ModelCSV

@Hirurg103
Copy link
Author

This is fixed in the develop branch in this commit in #473

But this issue is still present on master. Hope that it will be released soon !

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

No branches or pull requests

1 participant