Skip to content

Commit ce2c800

Browse files
committed
add the "option key" in customizable options
1 parent 5ff3fa9 commit ce2c800

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ serializer.serializable_hash
409409
Option | Purpose | Example
410410
------------ | ------------- | -------------
411411
set_type | Type name of Object | ```set_type :movie ```
412+
key | Key of Object | ```belongs_to :owner, key: :user ```
412413
set_id | ID of Object | ```set_id :owner_id ```
413414
cache_options | Hash to enable caching and set cache length | ```cache_options enabled: true, cache_length: 12.hours, race_condition_ttl: 10.seconds```
414415
id_method_name | Set custom method name to get ID of an object | ```has_many :locations, id_method_name: :place_ids ```

0 commit comments

Comments
 (0)