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
Hi, I updated mobility-ransack to 1.2.2 which also updates ransack to 4.1.1. After adding the ransackable_attributes and associations, I expect it to work like before but now predicate search stops working.
I am not sure if this is an upstream issue or something related to this plugin.
Another thing to note is that in rails console, using predicate title_cont results in an empty query
Story.ransack(title_cont: "Totam").result.to_sql=>"SELECT \"stories\".* FROM \"stories\""
where as using association predicate story_updates_title_cont results in a proper sql
Story.ransack(story_updates_title_cont: "Totam").result.to_sql=>"SELECT \"stories\".* FROM \"stories\" LEFT OUTER JOIN \"story_updates\" ON \"story_updates\".\"discarded_at\" IS NULL AND \"story_updates\".\"story_id\" = \"stories\".\"id\" WHERE (\"story_updates\".\"title\" ->> 'en') ILIKE '%Totam%'"
Hi, I updated mobility-ransack to 1.2.2 which also updates ransack to 4.1.1. After adding the ransackable_attributes and associations, I expect it to work like before but now predicate search stops working.
I am not sure if this is an upstream issue or something related to this plugin.
Detailed Logs:
Another thing to note is that in rails console, using predicate
title_cont
results in an empty querywhere as using association predicate
story_updates_title_cont
results in a proper sqlwhich is a bit strange
Source
The text was updated successfully, but these errors were encountered: