diff --git a/app/models/project_hook.rb b/app/models/hooks/project_hook.rb similarity index 100% rename from app/models/project_hook.rb rename to app/models/hooks/project_hook.rb diff --git a/app/models/service_hook.rb b/app/models/hooks/service_hook.rb similarity index 100% rename from app/models/service_hook.rb rename to app/models/hooks/service_hook.rb diff --git a/app/models/system_hook.rb b/app/models/hooks/system_hook.rb similarity index 100% rename from app/models/system_hook.rb rename to app/models/hooks/system_hook.rb diff --git a/app/models/web_hook.rb b/app/models/hooks/web_hook.rb similarity index 100% rename from app/models/web_hook.rb rename to app/models/hooks/web_hook.rb diff --git a/config/application.rb b/config/application.rb index a4234e8a264..99dfafdb786 100644 --- a/config/application.rb +++ b/config/application.rb @@ -14,6 +14,7 @@ module Gitlab # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/finders + #{config.root}/app/models/hooks #{config.root}/app/models/concerns #{config.root}/app/models/project_services #{config.root}/app/models/members)