From 38ed0deaac78f74cf983caf2f607956c1b2dcf83 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 15 Sep 2014 11:31:30 +0300 Subject: [PATCH] Move hook models in separate dir Signed-off-by: Dmitriy Zaporozhets --- app/models/{ => hooks}/project_hook.rb | 0 app/models/{ => hooks}/service_hook.rb | 0 app/models/{ => hooks}/system_hook.rb | 0 app/models/{ => hooks}/web_hook.rb | 0 config/application.rb | 1 + 5 files changed, 1 insertion(+) rename app/models/{ => hooks}/project_hook.rb (100%) rename app/models/{ => hooks}/service_hook.rb (100%) rename app/models/{ => hooks}/system_hook.rb (100%) rename app/models/{ => hooks}/web_hook.rb (100%) 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)