diff --git a/apps/dashboard/app/models/dev_product.rb b/apps/dashboard/app/models/dev_product.rb index 15ebaa4cb6..40468d1ac7 100644 --- a/apps/dashboard/app/models/dev_product.rb +++ b/apps/dashboard/app/models/dev_product.rb @@ -1,12 +1,15 @@ +# frozen_string_literal: true + # A Product class for development apps. class DevProduct < Product class << self def all - router.apps.map {|a| new(name: a.name, found: true)} + router.apps.map { |a| new(name: a.name, found: true) } end def find(name) raise Product::NotFound unless router.new(name).path.exist? + new(name: name, found: true) end