Defect #15958

AnonymousUser class not found by plugin

Added by Yehuda Katz almost 9 years ago. Updated 11 months ago.

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


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


Because the AnonymousUser class is in app/models/user.rb, plugins like 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

Related to Redmine - Feature #32938: Rails 6: Zeitwerk support Closed


#1 Updated by Go MAEDA 11 months ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Fixed in r21252 (#32938) for Redmine 5.0.0.

#2 Updated by Go MAEDA 11 months ago

Also available in: Atom PDF