Commit 28d564a8 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Move prepend to last line in app models - 1

parent eaaddf7b
......@@ -7,8 +7,6 @@ class CommitStatus < ApplicationRecord
include Presentable
include EnumWithNil
prepend_if_ee('::EE::CommitStatus') # rubocop: disable Cop/InjectEnterpriseEditionModule
self.table_name = 'ci_builds'
belongs_to :user
......@@ -292,3 +290,5 @@ class CommitStatus < ApplicationRecord
end
end
end
CommitStatus.prepend_if_ee('::EE::CommitStatus')
......@@ -2,7 +2,6 @@
# Global Milestones are milestones that can be shared across multiple projects
class GlobalMilestone
include Milestoneish
include_if_ee('::EE::GlobalMilestone') # rubocop: disable Cop/InjectEnterpriseEditionModule
STATE_COUNT_HASH = { opened: 0, closed: 0, all: 0 }.freeze
......@@ -105,3 +104,5 @@ class GlobalMilestone
true
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