Skip to content
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.

Already on GitHub? Sign in to your account

Update product_decorator.rb #199

Closed
wants to merge 1 commit into from
Closed

Update product_decorator.rb #199

wants to merge 1 commit into from

Conversation

rahul2103
Copy link
Contributor

@@ -4,7 +4,7 @@ module Spree
module ProductDecorator
def self.prepended(base)
base.has_many :relations, -> { order(:position) }, class_name: 'Spree::Relation', as: :relatable
base.has_many :relation_types, -> { distinct }, class_name: 'Spree::RelationType', through: :relations
base.has_many :relation_types, -> { distinct.reorder(nil) }, class_name: 'Spree::RelationType', through: :relations

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [121/80]

@Kulgar
Copy link
Contributor

Kulgar commented Jun 27, 2022

+1 for this bug and PR

@mcyoung
Copy link

mcyoung commented Aug 27, 2022

A +1 for me as well, please merge!

@rahul2103 rahul2103 closed this by deleting the head repository Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants