diff options
Diffstat (limited to 'app/controllers/projects/packages/infrastructure_registry_controller.rb')
-rw-r--r-- | app/controllers/projects/packages/infrastructure_registry_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/projects/packages/infrastructure_registry_controller.rb b/app/controllers/projects/packages/infrastructure_registry_controller.rb index 4506a83634a..c02a0a56e03 100644 --- a/app/controllers/projects/packages/infrastructure_registry_controller.rb +++ b/app/controllers/projects/packages/infrastructure_registry_controller.rb @@ -9,7 +9,11 @@ module Projects def show @package = project.packages.find(params[:id]) - @package_files = @package.package_files.recent + @package_files = if Feature.enabled?(:packages_installable_package_files, default_enabled: :yaml) + @package.installable_package_files.recent + else + @package.package_files.recent + end end end end |