README.md in json_api_client-1.5.1 vs README.md in json_api_client-1.5.2
- old
+ new
@@ -211,10 +211,14 @@
# => "Rails is Omakase"
# should not have returned the created_at
article.created_at
# => raise NoMethodError
+
+# or you can use fieldsets from multiple resources
+# makes request to /articles?fields[articles]=title,body&fields[comments]=tag
+article = Article.select("title", "body",{comments: 'tag'}).first
```
## Sorting
[See specification](http://jsonapi.org/format/#fetching-sorting)
@@ -483,10 +487,10 @@
rescue ArgumentError
default
end
end
end
-
+
JsonApiClient::Schema.register money: MyMoneyCaster
```
and finally