activerecord-postgres-array
activerecord-postgres-array copied to clipboard
Using ANY operator via arel
I know supporting arel-type query constructs is mentioned in your future enhancements, but would it be possible to give me some pointers on how to get the following working WITHOUT resorting to string-based SQL fragments?
clause = clause.or(Arel::Nodes::NamedFunction.new('any', [Post.arel_table[:tags]]).eq(tag))