Closed susanblueapron closed 8 years ago
Hello, and thank you very much for your PR! Have you considered introducing new method distinct
instead of introducing an option? I.e.:
Category.join_recursive do |query|
query.connect_by(id: :parent_id)
.start_with(id: node_1.id)
.distinct
end
It won't affect most of your changes, but this way we can have more clear interface. What do you think about it?
Updated distinct from an option to a method now
Thanks, great job!
Check out version 0.1.0 from rubygems
yup, updated in our Gemfile
Adding an option to perform a select distinct on the Common Table Expression, which is useful when this table is created using an outer join.