oddcamp / active_hash_relation

ActiveHash Relation: Simple gem that allows you to run multiple ActiveRecord::Relation using hash. Perfect for APIs.
https://www.kollegorna.se/
MIT License
118 stars 15 forks source link

is null, not null and not equal filter #14

Closed maceonrails closed 7 years ago

maceonrails commented 8 years ago

Hi, thanks for create this great gem. btw how to filter for 'is null' or 'not null' condition? and i think not equal (:neq) filter is not yet available, is it?

vasilakisfil commented 8 years ago

Hi! Unfortunately there is no such filter. Not equal is scheduled for Version 2 (https://github.com/kollegorna/active_hash_relation/issues/13). About null, I have also thought about it a lot I think I should also include that to Version 2.

vasilakisfil commented 7 years ago

Hi! Null/not null filter has been implemented on #16 Not filter has been just added on #25

You need to use version 1.3.0+ in order to get them (or use master). Enjoy!