Expected app/models/user.rb to define User

Added by The Ultimation about 12 years ago

Hi, i'm getting the following error in a plugin i installed, redmine statuses:

ERROR LoadError: Expected /Users/CRL00265/Documents/redmine1.0/app/models/user.rb to define User

I tried adding the following code to the top of the plugin's init.rb file:

require_dependency 'principal'
require_dependency 'user'

This seems to work, but only for the first page i visit. After I try to navigate to a new page, I get the same error. It's like the init file loads those dependencies initially, but then doesn't keep them loaded after that. I have to restart the server to get it working again. I'm using redmine 1.0 if that helps. Any suggestions? Thank you :)