Simple DSL for creating recursive queries with ActiveRecord