diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-07-23 07:52:15 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-07-23 07:52:15 +0000 |
commit | c52ab9141c27e131721d8ae28b44bff9a3431cae (patch) | |
tree | 2109d84de1377060705b7605e355f6830be8a9db /lib/api | |
parent | 480b5345682c6935314f1958e79c1edd1a19c2f3 (diff) | |
download | gitlab-ce-c52ab9141c27e131721d8ae28b44bff9a3431cae.tar.gz |
Fix gitlab import project load
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 8c40d66c651..464a31ee819 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -132,6 +132,7 @@ module API expose :star_count, :forks_count expose :last_activity_at + expose :namespace, using: 'API::Entities::NamespaceBasic' expose :custom_attributes, using: 'API::Entities::CustomAttribute', if: :with_custom_attributes def self.preload_relation(projects_relation, options = {}) @@ -194,7 +195,6 @@ module API expose :shared_runners_enabled expose :lfs_enabled?, as: :lfs_enabled expose :creator_id - expose :namespace, using: 'API::Entities::NamespaceBasic' expose :forked_from_project, using: Entities::BasicProjectDetails, if: lambda { |project, options| project.forked? } expose :import_status expose :import_error, if: lambda { |_project, options| options[:user_can_admin_project] } |