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
I'm using ransack-mongoid. When I try filter by reference (like role_id_eq) the value of parent is a constant refering model Role. So the code try check if exists a item on collection roles on database. Why?
https://github.com/activerecord-hackery/ransack/blob/85fc41b329ca2b316bab32c464dd8920fae74998/lib/ransack/nodes/bindable.rb#L21
I'm using ransack-mongoid. When I try filter by reference (like
role_id_eq) the value ofparentis a constant refering modelRole. So the code try check if exists a item on collectionroleson database. Why?Maybe the correct check is
parent.to_s.present?.activerecord-hackery/ransack#1063