Remove careful SQL-selecting on homepage
This keeps causing missing-attribute crashes when I change things, and I don't think the performance benefit is a big deal for how the page currently runs, esp as we keep gathering more attributes? I feel like `description` is the main "large" one we're omitting, and like. Shrug!
This commit is contained in:
parent
0261d02137
commit
4cbac13df1
1 changed files with 1 additions and 5 deletions
|
@ -50,11 +50,7 @@ class OutfitsController < ApplicationController
|
||||||
@colors = Color.alphabetical
|
@colors = Color.alphabetical
|
||||||
@species = Species.alphabetical
|
@species = Species.alphabetical
|
||||||
|
|
||||||
newest_items = Item.newest.
|
newest_items = Item.newest.limit(18)
|
||||||
select(:id, :name, :created_at, :updated_at, :thumbnail_url,
|
|
||||||
:rarity_index, :is_manually_nc, :cached_compatible_body_ids,
|
|
||||||
:cached_predicted_fully_modeled)
|
|
||||||
.limit(18)
|
|
||||||
@newest_modeled_items, @newest_unmodeled_items =
|
@newest_modeled_items, @newest_unmodeled_items =
|
||||||
newest_items.partition(&:predicted_fully_modeled?)
|
newest_items.partition(&:predicted_fully_modeled?)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue