activerecord-postgres-array icon indicating copy to clipboard operation
activerecord-postgres-array copied to clipboard

Using ANY operator via arel

Open saurabhnanda opened this issue 12 years ago • 0 comments

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))

saurabhnanda avatar Apr 15 '13 14:04 saurabhnanda