From 3a570ebd3f201e5fb4bed1251f36690111a8b2a3 Mon Sep 17 00:00:00 2001 From: iarie Date: Sat, 17 Jun 2017 16:59:25 +0300 Subject: [PATCH] add options description to docs --- docs/customizing_dashboards.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/customizing_dashboards.md b/docs/customizing_dashboards.md index c23e88a4d2..9df98954c0 100644 --- a/docs/customizing_dashboards.md +++ b/docs/customizing_dashboards.md @@ -79,6 +79,16 @@ which are specified through the `.with_options` class method: `:direction` - What direction the sort should be in, `:asc` (default) or `:desc`. +`:primary_key` - Specifies object's primary_key. Defaults to `:id`. + +`:foreign_key` - Specifies the name of the foreign key directly. Defaults to `:#{attribute}_id` + +**Field::BelongsTo** + +`:primary_key` - Specifies object's primary_key. Defaults to `:id`. + +`:foreign_key` - Specifies the name of the foreign key directly. Defaults to `:#{attribute}_id` + **Field::Number** `:decimals` - Set the number of decimals to display. Defaults to `0`.