Defect #15958

AnonymousUser class not found by plugin

Added by Yehuda Katz almost 4 years ago.

Status:NewStart date:
Priority:HighDue date:
Assignee:-% Done:

0%

Category:Code cleanup/refactoring
Target version:-
Resolution: Affected version:2.3.3

Description

Because the AnonymousUser class is in app/models/user.rb, plugins like http://www.redmine.org/plugins/anonymous-authors can't autoload it. The temporary solution I used was to add autoload :AnonymousUser, "/full/path/to/redmine/app/models/user.rb" to the plugin init.rb.
I think the correct solution would be to break AnonymousUser into its own file.

Also available in: Atom PDF