Skip to content

Commit dfef86f

Browse files
committed
Move filter apply value note above example statement
1 parent 0650f4b commit dfef86f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,11 @@ You may customize how a filter behaves by supplying a callable to the `:apply` o
654654
apply that filter. The callable is passed the `records`, which is an `ActiveRecord::Relation`, the `value`, and an
655655
`_options` hash. It is expected to return an `ActiveRecord::Relation`.
656656

657-
This example shows how you can implement different approaches for different filters.
658-
659657
Note: When a filter is not supplied a `verify` callable to modify the `value` that the `apply` callable receives,
660658
`value` defaults to an array of the string values provided to the filter parameter.
661659

660+
This example shows how you can implement different approaches for different filters.
661+
662662
```ruby
663663
# When given the following parameter:'filter[visibility]': 'public'
664664

0 commit comments

Comments
 (0)