Skip to content

Chore/upgrade rails#176

Merged
dapi merged 37 commits intomasterfrom
chore/upgrade-rails
Oct 30, 2025
Merged

Chore/upgrade rails#176
dapi merged 37 commits intomasterfrom
chore/upgrade-rails

Conversation

@dapi
Copy link
Copy Markdown
Contributor

@dapi dapi commented Oct 19, 2025

No description provided.

dapi and others added 30 commits October 15, 2025 21:06
Problem: Workflow gem creates done! method without parameters, but
PaymentCardOrder needs to upload image with done(image:) method.

Solution: Override done! method to:
1. Load image using existing done(image:) method
2. Trigger workflow transition manually via done_transition

This allows API to call order.done!(image: file) and properly:
- Upload image to carrierwave
- Set pending_at timestamp
- Transition workflow state from none to pending

Fixes issue where image upload failed with ArgumentError about
wrong number of arguments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 9298603.
This reverts commit c4aa308.
@dapi dapi merged commit 2a235bc into master Oct 30, 2025
1 check passed
@dapi dapi deleted the chore/upgrade-rails branch October 30, 2025 15:40
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.

1 participant