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 path for Spree::ProductsControllerDecorator #78

Merged
merged 2 commits into from
Feb 10, 2020

Conversation

aldesantis
Copy link
Member

@aldesantis aldesantis commented Feb 10, 2020

Fixes #77 by changing the path of Spree::ProductsControllerDecorator.

Also removes some permitted attributes from Spree::ProductsController that were not really needed.

@aldesantis aldesantis self-assigned this Feb 10, 2020
@aldesantis aldesantis requested a review from kennyadsl February 10, 2020 09:08
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

👍

@aldesantis aldesantis force-pushed the bugfix/decorator-namespacing branch 2 times, most recently from e60768f to f652da4 Compare February 10, 2020 09:17
@aldesantis aldesantis changed the title Fix namespace for Spree::Admin::ProductsControllerDecorator Fix path for Spree::ProductsControllerDecorator Feb 10, 2020
@aldesantis aldesantis force-pushed the bugfix/decorator-namespacing branch from f652da4 to 642d41a Compare February 10, 2020 09:18
There is no reason for avg_rating or reviews_count to be writeable,
especially by regular users, since they are computed values.
@aldesantis aldesantis force-pushed the bugfix/decorator-namespacing branch from 642d41a to b6aef6a Compare February 10, 2020 09:18
@aldesantis aldesantis merged commit 4781a63 into master Feb 10, 2020
@aldesantis aldesantis deleted the bugfix/decorator-namespacing branch February 10, 2020 12:07
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.

uninitialized constant SolidusReviews::Spree::Admin (NameError)
2 participants