We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8a3da commit ec35c18Copy full SHA for ec35c18
README.md
@@ -212,7 +212,7 @@ end
212
213
See [here](#columns-syntax) to get more details about columns definitions and how to play with associated models.
214
215
-You can customize or sanitize the search value passed to the DB by using the `:formatter` option :
+You can customize or sanitize the search value passed to the DB by using the `:formatter` option with a lambda :
216
217
```ruby
218
def view_columns
@@ -226,6 +226,8 @@ def view_columns
226
end
227
```
228
229
+The object passed to the lambda is the search value.
230
+
231
#### b. Map data
232
233
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