From 7d3dac33ba3a21754c6797c5c12193645d667173 Mon Sep 17 00:00:00 2001 From: Joel Johnson Date: Wed, 31 Jan 2018 23:20:34 -0600 Subject: [PATCH] Add missing commas --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b940e7a..4afaa29 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ json_string = MovieSerializer.new([movie, movie], options).serialized_json class MovieSerializer include FastJsonapi::ObjectSerializer set_type :movie # optional - cache_options enabled: true cache_length: 12.hours + cache_options enabled: true, cache_length: 12.hours attributes :name, :year end ``` @@ -169,7 +169,7 @@ end Option | Purpose | Example ------------ | ------------- | ------------- set_type | Type name of Object | ```set_type :movie ``` -cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true cache_length: 12.hours``` +cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true, cache_length: 12.hours``` id_method_name | Set custom method name to get ID of an object | ```has_many :locations, id_method_name: :place_ids ``` object_method_name | Set custom method name to get related objects | ```has_many :locations, object_method_name: :places ``` record_type | Set custom Object Type for a relationship | ```belongs_to :owner, record_type: :user```