diff options
Diffstat (limited to 'lib/api/licenses.rb')
-rw-r--r-- | lib/api/licenses.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/licenses.rb b/lib/api/licenses.rb index f9536fc82bb..187d2c04703 100644 --- a/lib/api/licenses.rb +++ b/lib/api/licenses.rb @@ -24,7 +24,7 @@ module API options = { featured: params[:popular].present? ? true : nil } - present Licensee::License.all(options), with: Entities::License + present Licensee::License.all(options), with: Entities::RepoLicense end # Get text for specific license @@ -52,7 +52,7 @@ module API fullname = params[:fullname].presence || current_user.try(:name) license.content.gsub!(FULLNAME_TEMPLATE_REGEX, fullname) if fullname - present license, with: Entities::License + present license, with: Entities::RepoLicense end end end |