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

Deprecate passing two trailing hashes to sort_link #1289

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

deivid-rodriguez
Copy link
Contributor

Pass a single options hash instead.

Pass a single options hash instead.
@dmitrue
Copy link

dmitrue commented Mar 31, 2022

Hi @deivid-rodriguez, with this merged how to correctly pass data: { turbo_action: :advance } to sort_link without appending it to params string now?
items?data-turbo-action=advance&q%5Bs%5D=id+asc"

@deivid-rodriguez
Copy link
Contributor Author

Hi, that seems like an oversight on my part, I think data needs to be special cased here like we did with class:. I'll work on it.

mamhoff added a commit to mamhoff/solidus that referenced this pull request May 29, 2024
The `sort_link` helper only takes a single options hash since Ransack
3.0: activerecord-hackery/ransack#1289
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.

None yet

2 participants