Project

General

Profile

Actions

Defect #15958

closed

AnonymousUser class not found by plugin

Added by Yehuda Katz about 12 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
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

Related to Redmine - Feature #32938: Rails 6: Zeitwerk supportClosedMarius BĂLTEANUActions
Actions

Also available in: Atom PDF