I run a cron job every minute to fetch the repository changesets. After the update to 0.8.0 I now get an email message every minute because the ruby script prints this warning:
mime_type.rb:66: warning: already initialized constant PDF
The command I run every minute is
/usr/bin/ruby /usr/lib/ruby/redmine/script/runner "Repository.fetch_changesets" -e production
It would be nice if this could be fixed so the warning goes away.
I'm not getting this error on trunk, the 0.8 tag, or the 0.8-stable branch. Can you reproduce the error and post your the section of your production.log showing it?
If I execute this manually on the shell, I get the same effect:
sh /data/redmine/bin/fetch-repository-changesets.sh
/usr/lib/ruby/redmine/vendor/rails/actionpack/lib/action_controller/mime_type.rb:66: warning: already initialized constant PDF
The relevant line in that shell script is this here:
I'm still not seeing this and haven't seen this in trunk since Rails 2.2.2. I'm guessing this was fixed with some changes in Redmine and Rails. After 0.9 is released and you upgrade, see if you still get this warning. If so, feel free to reopen this issue.