8000 More query improvements by Floppy · Pull Request #3729 · manyfold3d/manyfold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

More query improvements #3729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

8000

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/model_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_model
end

def get_file
@file = @model.model_files.includes(:unsupported_version, :presupported_version).find_param(params[:id])
@file = @model.model_files.find_param(params[:id])
authorize @file
@title = @file.name
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/models_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def model_params
end

def get_model
@model = policy_scope(Model).includes(:model_files, :creator, :preview_file, :library, :links).find_param(params[:id])
@model = policy_scope(Model).find_param(params[:id])
authorize @model
@title = @model.name
end
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/bullet.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Rails.application.config.after_initialize do
if Rails.env.development?
Bullet.enable = true
Bullet.raise = true
Bullet.rails_logger = true

# Features
Bullet.n_plus_one_query_enable = true
Expand Down
Loading
0