Commit b4b255f0 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'app-models-1' into 'master'

Move prepend to last line in app models - 1

See merge request gitlab-org/gitlab!31826
parents a82a85ec 28d564a8
...@@ -7,8 +7,6 @@ class CommitStatus < ApplicationRecord ...@@ -7,8 +7,6 @@ class CommitStatus < ApplicationRecord
include Presentable include Presentable
include EnumWithNil include EnumWithNil
prepend_if_ee('::EE::CommitStatus') # rubocop: disable Cop/InjectEnterpriseEditionModule
self.table_name = 'ci_builds' self.table_name = 'ci_builds'
belongs_to :user belongs_to :user
...@@ -292,3 +290,5 @@ class CommitStatus < ApplicationRecord ...@@ -292,3 +290,5 @@ class CommitStatus < ApplicationRecord
end end
end end
end end
CommitStatus.prepend_if_ee('::EE::CommitStatus')
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Global Milestones are milestones that can be shared across multiple projects # Global Milestones are milestones that can be shared across multiple projects
class GlobalMilestone class GlobalMilestone
include Milestoneish include Milestoneish
include_if_ee('::EE::GlobalMilestone') # rubocop: disable Cop/InjectEnterpriseEditionModule
STATE_COUNT_HASH = { opened: 0, closed: 0, all: 0 }.freeze STATE_COUNT_HASH = { opened: 0, closed: 0, all: 0 }.freeze
...@@ -105,3 +104,5 @@ class GlobalMilestone ...@@ -105,3 +104,5 @@ class GlobalMilestone
true true
end end
end end
GlobalMilestone.include_if_ee('::EE::GlobalMilestone')
---
title: Move prepend to last line in app models
merge_request: 31826
author: Rajendra Kadam
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment