Skip to content

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