From e14eed89d4345da3287f20a18c67ef642496ad2a Mon Sep 17 00:00:00 2001 From: Dan McClain Date: Wed, 24 Oct 2012 21:50:34 -0300 Subject: [PATCH] Fixing syntax error in Readme [ci skip] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9005ae..630ad13 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ accompish this: user_arel = User.arel_table any_tags_function = Arel::Nodes::NamedFunction.new('ANY', [user_arel[:tags]]) -predicate = Arel::Nodes::Equality('test', any_tags_function) +predicate = Arel::Nodes::Equality.new('test', any_tags_function) User.where(predicate).to_sql #=> SELECT \"users\".* FROM \"users\" WHERE 'test' = ANY(\"users\".\"tags\")