Skip to content

Empty cart mutation#111

Merged
ChristianRimondi merged 2 commits intomasterfrom
empty-cart-mutation
May 29, 2020
Merged

Empty cart mutation#111
ChristianRimondi merged 2 commits intomasterfrom
empty-cart-mutation

Conversation

@ChristianRimondi
Copy link
Copy Markdown
Contributor

@ChristianRimondi ChristianRimondi commented May 15, 2020

Add a mutation to clear the current order and to move it to the 'cart' state.

It raises a CanCan::AccessDenied exception in case the current ability can't update the current order.

@ChristianRimondi ChristianRimondi self-assigned this May 15, 2020
@ChristianRimondi ChristianRimondi marked this pull request as ready for review May 22, 2020 08:20
The mutation clears the current order and moves it to the 'cart' state.

It raises a CanCan::AccessDenied exception in case the current ability
can't update the current order.
Using command "bundle exec rake schema:idl"
Copy link
Copy Markdown
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Contributor

@AlessioRocco AlessioRocco left a comment

Choose a reason for hiding this comment

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

🚀

@ChristianRimondi ChristianRimondi merged commit 1363dee into master May 29, 2020
@ChristianRimondi ChristianRimondi deleted the empty-cart-mutation branch May 29, 2020 13:39
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.

4 participants