Skip to content

Commit ec35c18

Browse files
committed
Update README [ci skip]
1 parent cb8a3da commit ec35c18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ end
212212

213213
See [here](#columns-syntax) to get more details about columns definitions and how to play with associated models.
214214

215-
You can customize or sanitize the search value passed to the DB by using the `:formatter` option :
215+
You can customize or sanitize the search value passed to the DB by using the `:formatter` option with a lambda :
216216

217217
```ruby
218218
def view_columns
@@ -226,6 +226,8 @@ def view_columns
226226
end
227227
```
228228

229+
The object passed to the lambda is the search value.
230+
229231
#### b. Map data
230232

231233
Then we need to map the records retrieved by the `get_raw_records` method to the real values we want to display :

0 commit comments

Comments
 (0)