Skip to content

Using ANY operator via arel #29

Description

@saurabhnanda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions