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

has_related_products? doesnt work like you should expect #88

Open
reinaris opened this issue Apr 4, 2014 · 0 comments
Open

has_related_products? doesnt work like you should expect #88

reinaris opened this issue Apr 4, 2014 · 0 comments

Comments

@reinaris
Copy link
Contributor

reinaris commented Apr 4, 2014

The has_related_products? method on a product (explained in the Readme) doesn't work like the example tells you.

product.has_related_products?("accessories") just checks if the relation type "accessories" is defined in general. Not if the product got relations with relation type "accessories".

See:
https://github.com/spree/spree_related_products/blob/2-2-stable/app/models/spree/product_decorator.rb#L64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants