File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
62
62
end
63
63
64
64
# or
65
- type # implicitly expanded to `type { |t| field type: t }
65
+ type # implicitly expanded to `type { |t| field type: t }`
66
66
end
67
67
```
68
68
@@ -77,11 +77,11 @@ Example:
77
77
class DeserializablePost < JSONAPI ::Deserializable ::Post
78
78
# ...
79
79
id do |i |
80
- field primary_id: id .to_i
80
+ field primary_id: i .to_i
81
81
end
82
82
83
83
# or
84
- id # implicitly expanded to `id { |i| field id: i }
84
+ id # implicitly expanded to `id { |i| field id: i }`
85
85
end
86
86
```
87
87
@@ -104,7 +104,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
104
104
end
105
105
106
106
# or
107
- attribute :date # implicitly expanded to `attribute :date { |d| field date: d }
107
+ attribute :date # implicitly expanded to `attribute( :date) { |d| field date: d }`
108
108
end
109
109
```
110
110
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ layout: guides
6
6
## What is jsonapi-rb?
7
7
[ jsonapi-rb] ( https://github.com/jsonapi-rb/jsonapi-rb ) is a ruby library for
8
8
producing and consuming [ JSON API] ( http://jsonapi.org ) documents. It is cleanly
9
- layered, has an intuitive yet intention -stating API, and no magic.
9
+ layered, has an intuitive yet intent -stating API, and no magic.
10
10
11
11
It is comprised of 4 independent micro-libraries:
12
12
You can’t perform that action at this time.
0 commit comments