Skip to content

Commit 3ba505b

Browse files
authored
Merge pull request #3 from liaden/missing-commas
Add missing commas
2 parents 6e1b5d2 + 7d3dac3 commit 3ba505b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ json_string = MovieSerializer.new([movie, movie], options).serialized_json
159159
class MovieSerializer
160160
include FastJsonapi::ObjectSerializer
161161
set_type :movie # optional
162-
cache_options enabled: true cache_length: 12.hours
162+
cache_options enabled: true, cache_length: 12.hours
163163
attributes :name, :year
164164
end
165165
```
@@ -169,7 +169,7 @@ end
169169
Option | Purpose | Example
170170
------------ | ------------- | -------------
171171
set_type | Type name of Object | ```set_type :movie ```
172-
cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true cache_length: 12.hours```
172+
cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true, cache_length: 12.hours```
173173
id_method_name | Set custom method name to get ID of an object | ```has_many :locations, id_method_name: :place_ids ```
174174
object_method_name | Set custom method name to get related objects | ```has_many :locations, object_method_name: :places ```
175175
record_type | Set custom Object Type for a relationship | ```belongs_to :owner, record_type: :user```

0 commit comments

Comments
 (0)