summaryrefslogtreecommitdiff
path: root/app/finders/license_template_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/license_template_finder.rb')
-rw-r--r--app/finders/license_template_finder.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/finders/license_template_finder.rb b/app/finders/license_template_finder.rb
index b4235a77867..51457d443a1 100644
--- a/app/finders/license_template_finder.rb
+++ b/app/finders/license_template_finder.rb
@@ -34,9 +34,13 @@ class LicenseTemplateFinder
private
+ def available_licenses
+ Licensee::License.all(featured: popular_only?)
+ end
+
def vendored_licenses
strong_memoize(:vendored_licenses) do
- Licensee::License.all(featured: popular_only?).map do |license|
+ available_licenses.map do |license|
LicenseTemplate.new(
key: license.key,
name: license.name,