diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2021-11-17 20:55:08 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2021-11-17 20:55:08 +0000 |
commit | a914cf4c402b2597e0cc563bd84145ce9eda5a41 (patch) | |
tree | edb14ba9ebce182cb4f7cac808bfb49c6c504a46 /app | |
parent | e82b0a77e348419bb4c4ed736ac126e22358eac0 (diff) | |
download | redmine-a914cf4c402b2597e0cc563bd84145ce9eda5a41.tar.gz redmine-a914cf4c402b2597e0cc563bd84145ce9eda5a41.zip |
Switch to zeitwerk autoloader (#29914, #32938).
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21287 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/custom_field.rb | 2 | ||||
-rw-r--r-- | app/models/enumeration.rb | 5 | ||||
-rw-r--r-- | app/models/group.rb | 2 | ||||
-rw-r--r-- | app/models/group_builtin.rb | 3 | ||||
-rw-r--r-- | app/models/principal.rb | 3 |
5 files changed, 0 insertions, 15 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 9787b2ee4..b81dae233 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -359,5 +359,3 @@ class CustomField < ActiveRecord::Base end end end - -require_dependency 'redmine/field_format' diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 53360e5ff..5f0e023ed 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -174,8 +174,3 @@ class Enumeration < ActiveRecord::Base end end end - -# Force load the subclasses in development mode -require_dependency 'time_entry_activity' -require_dependency 'document_category' -require_dependency 'issue_priority' diff --git a/app/models/group.rb b/app/models/group.rb index a676816ec..881dfb149 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -127,5 +127,3 @@ class Group < Principal Watcher.where('user_id = ?', id).delete_all end end - -require_dependency "group_builtin" diff --git a/app/models/group_builtin.rb b/app/models/group_builtin.rb index 0c29d50da..5d2eccde5 100644 --- a/app/models/group_builtin.rb +++ b/app/models/group_builtin.rb @@ -56,6 +56,3 @@ class GroupBuiltin < Group private :create_instance end end - -require_dependency "group_anonymous" -require_dependency "group_non_member" diff --git a/app/models/principal.rb b/app/models/principal.rb index 495d55669..7004e7d93 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -217,6 +217,3 @@ class Principal < ActiveRecord::Base end end end - -require_dependency "user" -require_dependency "group" |