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

Convert store credits to discard #2489

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

jhawthorn
Copy link
Contributor

No description provided.

@@ -33,6 +39,7 @@ class Spree::StoreCredit < Spree::PaymentSource
before_validation :associate_credit_type
before_validation :validate_category_unchanged, on: :update
before_destroy :validate_no_amount_used
Copy link
Contributor Author

@jhawthorn jhawthorn Jan 5, 2018

Choose a reason for hiding this comment

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

I'm pretty sure this existing line never worked. Though errors are added to the model, deleted_at is still set and persisted.

EDIT: confirmed broken since at least 1.4

@jhawthorn jhawthorn merged commit 30581e9 into solidusio:master Jan 10, 2018
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