Closed antarr closed 2 years ago
when did you get this error? souls check? or souls s?
When running migrations souls db migration
did you add require
at app.rb
?
souls is using zeitwerk, you can add your modules at app.rb !
@POPPIN-FUMI Thanks that was it. Had to add loader.push_dir("#{Dir.pwd}/app/models/concerns")
@antarr Cool! I'm glad to hear that! Happy coding!
I'm trying to move as much of my existing rails application to souls. I'm running into errors when dealing with modules/concerns.
I was getting an error with
Was able to fix it by moving those class definitions in the same file
But now I'm getting an error with my concerns. I'm getting this error
in my model
How can I import modules into my models?