From b1495a156072e3ce283936fde06212413121eb27 Mon Sep 17 00:00:00 2001 From: Vinod Lala Date: Wed, 3 Aug 2016 12:13:11 -0400 Subject: [PATCH] Fix doc for meta_key (#1869) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 366e5c30..5c862a0b 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ The above usage of `:meta` will produce the following: If you would like to change the meta key name you can use the `:meta_key` option: ```ruby -render json: @posts, serializer: CustomArraySerializer, meta_object: {total: 10}, meta_key: 'meta_object' +render json: @posts, serializer: CustomArraySerializer, meta_object: { total: 10 }, meta_key: :meta_object ``` The above usage of `:meta_key` will produce the following: