mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
eager loading for files
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user