spree_reviews icon indicating copy to clipboard operation
spree_reviews copied to clipboard

Fix anonymous reviews to work with Rails 5+

Open johndavid400 opened this issue 4 years ago • 0 comments

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 avatar May 15 '20 21:05 johndavid400