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

Fix anonymous reviews to work with Rails 5+ #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johndavid400
Copy link

@johndavid400 johndavid400 commented May 15, 2020

Rails 5 changed belongs_to associations to be required to save. This extension has an option to allow anonymous reviews, but this does not work on Rails 5 applications without the belongs_to :user being optional.

Adding the optional: true allows creating anonymous reviews - tested on Spree 3.7 with Rails 5.2.

@johndavid400 johndavid400 changed the title add optional: true to belongs_to :user association to work with Rails 5+ Fix anonymous reviews to work with Rails 5+ May 15, 2020
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.

2 participants