We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f36f74 commit 4a4f757Copy full SHA for 4a4f757
lib/json_api_client/resource.rb
@@ -494,8 +494,15 @@ def association_for(name)
494
end
495
496
497
+ def non_serializing_attributes
498
+ [
499
+ self.class.read_only_attributes,
500
+ self.class.prefix_params.map(&:to_s)
501
+ ].flatten
502
+ end
503
+
504
def attributes_for_serialization
- attributes.except(*self.class.read_only_attributes).slice(*changed)
505
+ attributes.except(*non_serializing_attributes).slice(*changed)
506
507
508
def relationships_for_serialization
0 commit comments