summaryrefslogtreecommitdiff
path: root/lib/api/entities/license_basic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities/license_basic.rb')
-rw-r--r--lib/api/entities/license_basic.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/api/entities/license_basic.rb b/lib/api/entities/license_basic.rb
index 08af68785a9..0916738d21d 100644
--- a/lib/api/entities/license_basic.rb
+++ b/lib/api/entities/license_basic.rb
@@ -2,10 +2,16 @@
module API
module Entities
+ # Serializes a Gitlab::Git::DeclaredLicense
class LicenseBasic < Grape::Entity
expose :key, :name, :nickname
expose :url, as: :html_url
- expose(:source_url) { |license| license.meta['source'] }
+
+ # This was dropped:
+ # https://github.com/github/choosealicense.com/commit/325806b42aa3d5b78e84120327ec877bc936dbdd#diff-66df8f1997786f7052d29010f2cbb4c66391d60d24ca624c356acc0ab986f139
+ expose :source_url do |_|
+ nil
+ end
end
end
end