From ce2c8003eebf715058f17ce3b849d3c1f6510b88 Mon Sep 17 00:00:00 2001 From: Gleydson Tavares Date: Fri, 10 Aug 2018 13:15:02 -0300 Subject: [PATCH] add the "option key" in customizable options --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a03e1a8..8b40273 100644 --- a/README.md +++ b/README.md @@ -409,6 +409,7 @@ serializer.serializable_hash Option | Purpose | Example ------------ | ------------- | ------------- set_type | Type name of Object | ```set_type :movie ``` +key | Key of Object | ```belongs_to :owner, key: :user ``` set_id | ID of Object | ```set_id :owner_id ``` cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true, cache_length: 12.hours, race_condition_ttl: 10.seconds``` id_method_name | Set custom method name to get ID of an object | ```has_many :locations, id_method_name: :place_ids ```