-
Notifications
You must be signed in to change notification settings - Fork 98
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
Rails 7 - Generated models and my own custom changes aren't applying. #200
Comments
I am trying to remove the validation for uniqueness on comment body. If there was a way to do this with a config flag, I also wouldnt need to copy out the model and change it, although it would be nice to still be able to update the models. |
If you are in dev mode, did you remember to restart the server after copying the file? |
yeah I definitely tried that and it didn't work. I also tried generating a brand new project on latest rails and Ruby and still no luck unfortunately. Looks like it is an issue with rails 7. I ended up forking and modifying the model myself for the short term until a better solution is available. |
got the same issue, for comments_controller |
try add this line to your application.rb |
@musik it seems the first option worked for me. The README should probably be updated to reflect this. |
This worked for me |
I run rake commontator:copy:models and make changes to the validation rules inside model in app/models/commontator/comment.rb but they don't apply, like the documentation says it should.
The text was updated successfully, but these errors were encountered: