Skip to content

Commit

Permalink
Merge pull request #5867 from mamhoff/performance-remove-includes
Browse files Browse the repository at this point in the history
Performance: Remove includes from Spree::Variant#options_text
  • Loading branch information
kennyadsl authored Oct 18, 2024
2 parents 2f05527 + 3cb9d79 commit 01a15b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/variant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def is_backorderable?
#
# @return [String] a sentence-ified string of option values.
def options_text
values = option_values.includes(:option_type).sort_by do |option_value|
values = option_values.sort_by do |option_value|
option_value.option_type.position
end

Expand Down

0 comments on commit 01a15b5

Please sign in to comment.