Skip to content

Commit

Permalink
Fixing syntax error in Readme
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
danmcclain committed Oct 25, 2012
1 parent dad72e1 commit e14eed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\")
Expand Down

0 comments on commit e14eed8

Please sign in to comment.