File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ Option | Purpose | Example
427427------------ | ------------- | -------------
428428set_type | Type name of Object | ``` set_type :movie ```
429429key | Key of Object | ``` belongs_to :owner, key: :user ```
430- set_id | ID of Object | ``` set_id :owner_id ```
430+ set_id | ID of Object | ``` set_id :owner_id ``` or ``` set_id { |record| "#{record.name.downcase}-#{record.id}" } ```
431431cache_options | Hash to enable caching and set cache length | ``` cache_options enabled: true, cache_length: 12.hours, race_condition_ttl: 10.seconds ```
432432id_method_name | Set custom method name to get ID of an object | ``` has_many :locations, id_method_name: :place_ids ```
433433object_method_name | Set custom method name to get related objects | ``` has_many :locations, object_method_name: :places ```
You can’t perform that action at this time.
0 commit comments