Skip to content
Permalink
Browse files

Update querying.md

fixes grammatical error
  • Loading branch information...
rall committed Jun 4, 2014
1 parent 2ed2142 commit e34ac1f2d815fa133f6dea7e22b727846193e5f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/querying.md
@@ -12,7 +12,7 @@ We can add CTEs to queries by chaining `#with` off a relation.
`Relation#with` accepts a hash, and will convert `Relation`s to the
proper SQL in the CTE.

Let's expand a `#with` call to it's resulting SQL code:
Let's expand a `#with` call to its resulting SQL code:

```ruby
Score.with(my_games: Game.where(id: 1)).joins('JOIN my_games ON scores.game_id = my_games.id')

0 comments on commit e34ac1f

Please sign in to comment.
You can’t perform that action at this time.