How can we write the following statement to improve readability?
Promotion.joins(:category).where([\"lft>=? and rgt<=?\", c.lft, c.rgt]).joins(:shops).wher
It should compile in 1.9. In previous versions it was invalid indeed.