You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,9 @@ end
116
116
117
117
## Customizations
118
118
119
-
- Ransack options can be customized defining a `ransack_options` method in the controller, example:
119
+
- Ransack options can be changed defining a method `ransack_options` in the resource controller
120
+
- The Ransack results by default use _distinct_, to change this behavior it is possible to define a `ransack_result_distinct` method
121
+
- When a search term is not recognized a flash alert is shown (using a value from locales at `administrate_ransack.errors.invalid_search`), a custom behavior can be apply defining a method `invalid_search_callback`
0 commit comments