Open metageeky opened 7 years ago
I was able to fix the uninitialized constant error by removing where the add process had added the constant in config/initializers/sufia.rb
. Restarting the rails server made pages work again.
Thanks for the issue, @metageeky. I did some work related this in Hyrax that makes the work generator clean up after itself.
If anyone is inclined to backport to Sufia or CC, here is that work: https://github.com/projecthydra-labs/hyrax/pull/302/files
There's a bunch there, but this is the line that is probably needed: https://github.com/projecthydra-labs/hyrax/pull/302/files#diff-7ef30fd477089488a34e7266fa4373d7R47
Descriptive summary
I was attempting to delete a work type in Sufia 7.3. NOTE: No items had placed in the repository of ANY type. I had previously created the MovingImage type based on the command given in the Sufia README. Using the command
rails destroy sufia:work MovingImage
as provided by @mjgiarlo, I got the following and the errors:Note that the error appears to be that a subtract is being performed on the file _models/movingimage.rb that was deleted earlier.
Upon restarting the rails server, we also now get the following error in the browser:
Expected behavior
The MovingImage work type is deleted and everything runs okay.
Actual behavior
The delete work process fails as indicated in the steps above.
Steps to reproduce the behavior
rails destroy sufia:work MovingImage
Related work
None