Skip to content

Commit

Permalink
update document on example website to HasOne field type for HasOne se…
Browse files Browse the repository at this point in the history
…ction (#2568)
  • Loading branch information
jubilee2 authored Jul 3, 2024
1 parent 5e2fda6 commit ffb98f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/customizing_dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ Default is `false`.
For example:

```ruby
cities: Field::HasMany.with_options(
city: Field::HasOne.with_options(
searchable: true,
searchable_fields: ['name'],
)
```

with this, you will be able to search through the column `name` from the
association `has_many :cities`, from your model.
association `has_one :city`, from your model.

`:class_name` (deprecated) - Specifies the name of the associated class.

Expand Down

0 comments on commit ffb98f0

Please sign in to comment.