Skip to content

Commit

Permalink
Add forgotten .with_options in documentation (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcha authored and nickcharlton committed Aug 10, 2018
1 parent 9e5006f commit 60ac70d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/customizing_dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if `searchable` is `true`
For example:

```ruby
country: Field::BelongsTo(
country: Field::BelongsTo.with_options(
searchable: true,
seachable_field: 'name',
)
Expand Down Expand Up @@ -192,7 +192,7 @@ in.

**Field::Select**

`:collection` - Specify the array or range to select from. Defaults to `[]`.
`:collection` - Specify the array or range to select from. Defaults to `[]`.

`:searchable` - Specify if the attribute should be considered when searching.
Default is `true`.
Expand Down Expand Up @@ -246,11 +246,11 @@ Add this method to the dashboard for Users.
Use whatever attribute or method you like.
Example for *user*:
````ruby
```ruby
def display_resource(user)
user.name
end
````
```

[define your own]: /adding_custom_field_types

Expand Down

0 comments on commit 60ac70d

Please sign in to comment.