Replies: 2 comments
-
|
Late to this issue, but while I don't think it's feasible to do this without touching the database, we do something similar by chaining on a call to This is generally going to be very efficient because the RDBMS is likely to rewrite the query execution plan. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @slimdave , thanks for that. I do indeed use I'm absolutely certain that such a feature is not in the scope of Ransack. I just posted the question to see if others would also need such a functionality or if the Maintainers are doing something similar. Thank you again :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ransack is THE MOST valuable gem ever. It's absolutely great - thank you for creating and maintaining it!
It would be awesome if there was a method for testing individual records if they comply with the search params.
Having search params defined as:
we use it as:
Client.ransack(search_params).resultwhich yields a beautiful sql query with results.
I would love to be able to perform a test on a individual record without touching the database as such:
client.ransack_test(search_params) == trueIs something like the above possible?
Beta Was this translation helpful? Give feedback.
All reactions