diff --git a/app/controllers/model_files_controller.rb b/app/controllers/model_files_controller.rb index 638523a12..d3d8e3a73 100644 --- a/app/controllers/model_files_controller.rb +++ b/app/controllers/model_files_controller.rb @@ -108,7 +108,7 @@ class ModelFilesController < ApplicationController end def get_file - @file = @model.model_files.find(params[:id]) + @file = @model.model_files.includes(:unsupported_version, :presupported_version).find(params[:id]) authorize @file @title = @file.name end