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

Add possibility to override HTTP request's method when chaining save with options. #413

Merged
merged 2 commits into from
May 2, 2022

Conversation

dimameshcharakou
Copy link
Contributor

@dimameshcharakou dimameshcharakou commented May 2, 2022

Context

The method save might be used to update existing entity, in such case, sometimes, another HTTP verb is needed.
This PR adds possibility to override default POST method by chaining save with options like:
Entity.options(method: :put).save

@dimameshcharakou dimameshcharakou merged commit a392574 into master May 2, 2022
@dimameshcharakou dimameshcharakou deleted the options-save branch May 2, 2022 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants