Skip to content

Commit

Permalink
add options description to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iarie committed Jun 17, 2017
1 parent fabd1b2 commit 3a570eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/customizing_dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 3a570eb

Please sign in to comment.