diff options
Diffstat (limited to 'app/models/namespaces/project_namespace.rb')
-rw-r--r-- | app/models/namespaces/project_namespace.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/namespaces/project_namespace.rb b/app/models/namespaces/project_namespace.rb index 2a2ea11ddc5..cf2612b7f33 100644 --- a/app/models/namespaces/project_namespace.rb +++ b/app/models/namespaces/project_namespace.rb @@ -11,6 +11,8 @@ module Namespaces alias_attribute :namespace_id, :parent_id has_one :project, foreign_key: :project_namespace_id, inverse_of: :project_namespace + delegate :execute_hooks, :execute_integrations, to: :project, allow_nil: true + def self.sti_name 'Project' end |