summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-13 09:47:47 +0100
committerJames Lopez <james@jameslopez.es>2018-02-13 15:25:48 +0100
commit4a0d56daacc3f1825c5f9644a0ea63842fa9da7d (patch)
tree0708dbaa53d19886b4e7e01b9eff5761c95c6747 /lib/api/entities.rb
parent583ed0eb94ff938b4986491e27af5f3c97ea6baf (diff)
downloadgitlab-ce-4a0d56daacc3f1825c5f9644a0ea63842fa9da7d.tar.gz
fix entity
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 8fbad2b6959..ffdb06b8094 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -92,7 +92,9 @@ module API
class ProjectImportStatus < ProjectIdentity
expose :import_status
- expose :import_error, if: :import_error
+
+ # TODO: Use `expose_nil` once we upgrade the grape-entity gem
+ expose :import_error, if: lambda { |status, _ops| status.import_error }
end
class BasicProjectDetails < ProjectIdentity