Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Ransack 4 #2438

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 11, 2023

What is this pull request for?

extend your class with Alchemy::SearchableResource to provide necessary methods for Ransack to allow searching and sorting attributes and associations.

By default it allows all string and text attributes to be searched and all columns to be sorted. No association are allowed by default.

Existing searchable_alchemy_resource_attributes and alchemy_resource_relations definitions are respected.

Checklist

@tvdeyen tvdeyen force-pushed the ransack-4-support branch 3 times, most recently from ce7104f to a9eda33 Compare March 11, 2023 22:24
@tvdeyen tvdeyen requested a review from a team March 11, 2023 22:27
@tvdeyen tvdeyen added this to the 7.0 milestone Mar 30, 2023
`extend` your class with `Alchemy::SearchableResource` to
provide necessary methods for Ransack to allow searching
and sorting attributes and associations.

By default it allows all string and text attributes to be searched
and all columns to be sorted. No association are allowed by default.

Existing `searchable_alchemy_resource_attributes` and
`alchemy_resource_relations` definitions are respected.
@tvdeyen tvdeyen enabled auto-merge March 30, 2023 14:40
@tvdeyen tvdeyen merged commit 90f7972 into AlchemyCMS:main Mar 30, 2023
@tvdeyen tvdeyen deleted the ransack-4-support branch March 30, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants