Commit 5da848de authored by Rajendra Kadam's avatar Rajendra Kadam

Delete entities.rb and move prepend to respective entities

parent 8436caa8
# frozen_string_literal: true
module API
module Entities
end
end
# rubocop: disable Cop/InjectEnterpriseEditionModule
::API::Entities::ApplicationSetting.prepend_if_ee('EE::API::Entities::ApplicationSetting')
::API::Entities::Board.prepend_if_ee('EE::API::Entities::Board')
::API::Entities::Group.prepend_if_ee('EE::API::Entities::Group', with_descendants: true)
::API::Entities::GroupDetail.prepend_if_ee('EE::API::Entities::GroupDetail')
::API::Entities::IssueBasic.prepend_if_ee('EE::API::Entities::IssueBasic', with_descendants: true)
::API::Entities::Issue.prepend_if_ee('EE::API::Entities::Issue')
::API::Entities::List.prepend_if_ee('EE::API::Entities::List')
::API::Entities::MergeRequestBasic.prepend_if_ee('EE::API::Entities::MergeRequestBasic', with_descendants: true)
::API::Entities::Member.prepend_if_ee('EE::API::Entities::Member', with_descendants: true)
::API::Entities::Namespace.prepend_if_ee('EE::API::Entities::Namespace')
::API::Entities::Project.prepend_if_ee('EE::API::Entities::Project', with_descendants: true)
::API::Entities::ProtectedRefAccess.prepend_if_ee('EE::API::Entities::ProtectedRefAccess')
::API::Entities::UserPublic.prepend_if_ee('EE::API::Entities::UserPublic', with_descendants: true)
::API::Entities::Todo.prepend_if_ee('EE::API::Entities::Todo')
::API::Entities::ProtectedBranch.prepend_if_ee('EE::API::Entities::ProtectedBranch')
::API::Entities::Identity.prepend_if_ee('EE::API::Entities::Identity')
::API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin', with_descendants: true)
......@@ -34,3 +34,5 @@ module API
end
end
end
API::Entities::ApplicationSetting.prepend_if_ee('EE::API::Entities::ApplicationSetting')
......@@ -12,3 +12,5 @@ module API
end
end
end
API::Entities::Board.prepend_if_ee('EE::API::Entities::Board')
......@@ -34,3 +34,5 @@ module API
end
end
end
API::Entities::Group.prepend_if_ee('EE::API::Entities::Group', with_descendants: true)
......@@ -34,3 +34,5 @@ module API
end
end
end
API::Entities::GroupDetail.prepend_if_ee('EE::API::Entities::GroupDetail')
......@@ -7,3 +7,5 @@ module API
end
end
end
API::Entities::Identity.prepend_if_ee('EE::API::Entities::Identity')
......@@ -46,3 +46,5 @@ module API
end
end
end
API::Entities::Issue.prepend_if_ee('EE::API::Entities::Issue')
......@@ -41,3 +41,5 @@ module API
end
end
end
API::Entities::IssueBasic.prepend_if_ee('EE::API::Entities::IssueBasic', with_descendants: true)
......@@ -9,3 +9,5 @@ module API
end
end
end
API::Entities::List.prepend_if_ee('EE::API::Entities::List')
......@@ -9,3 +9,5 @@ module API
end
end
end
API::Entities::Member.prepend_if_ee('EE::API::Entities::Member', with_descendants: true)
......@@ -92,3 +92,5 @@ module API
end
end
end
API::Entities::MergeRequestBasic.prepend_if_ee('EE::API::Entities::MergeRequestBasic', with_descendants: true)
......@@ -13,3 +13,5 @@ module API
end
end
end
API::Entities::Namespace.prepend_if_ee('EE::API::Entities::Namespace')
......@@ -130,3 +130,5 @@ module API
end
end
end
API::Entities::Project.prepend_if_ee('EE::API::Entities::Project', with_descendants: true)
......@@ -10,3 +10,5 @@ module API
end
end
end
API::Entities::ProtectedBranch.prepend_if_ee('EE::API::Entities::ProtectedBranch')
......@@ -10,3 +10,5 @@ module API
end
end
end
API::Entities::ProtectedRefAccess.prepend_if_ee('EE::API::Entities::ProtectedRefAccess')
......@@ -44,3 +44,5 @@ module API
end
end
end
API::Entities::Todo.prepend_if_ee('EE::API::Entities::Todo')
......@@ -17,3 +17,5 @@ module API
end
end
end
API::Entities::UserPublic.prepend_if_ee('EE::API::Entities::UserPublic', with_descendants: true)
......@@ -7,3 +7,5 @@ module API
end
end
end
API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin', with_descendants: true)
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