Skip to content

Allow new fields on create and update #155

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

Merged
merged 2 commits into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
2 changes: 1 addition & 1 deletion lib/flex_commerce_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FlexCommerceApi
VERSION = '0.6.46'
VERSION = '0.6.47'
end
12 changes: 11 additions & 1 deletion lib/patches/json_api_client/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@ def save
mark_as_persisted!
if updated = last_result_set.first
self.attributes = updated.attributes
# This line has been added as part of https://github.com/chingor13/json_api_client/pull/238
self.links.attributes = updated.links.attributes
self.relationships.attributes = updated.relationships.attributes
clear_changes_information
# This line has been added as part of https://github.com/JsonApiClient/json_api_client/pull/285
self.relationships.clear_changes_information
end
true
end
end
end
end
else
raise "Please check this PR (https://github.com/chingor13/json_api_client/pull/238) and if it has been merged, remove this file (#{__FILE__}) - if not add the current version to the allowed array at the top of this file."
raise %q(
Please check these two PRs:
* https://github.com/chingor13/json_api_client/pull/238 (This was released in version 1.5.0)
* https://github.com/JsonApiClient/json_api_client/pull/285 (This hasn't yet been released at the time of writing this)

If both have been merged into the gem version you are using, remove this file (#{__FILE__}).
If not, add the current version to the allowed array at the top of this file.
)
end