Actions
Defect #15958
closedAnonymousUser class not found by plugin
Status:
Closed
Priority:
High
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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.
Related issues
Updated by Go MAEDA almost 3 years ago
- Related to Feature #32938: Rails 6: Zeitwerk support added
Actions