Skip to content

Fix _ct.scope_with_order when no order_column is specified #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2013

Conversation

tulak
Copy link
Contributor

@tulak tulak commented Aug 2, 2013

_ct.scope_with_order should accept additional_order_by attribute even when no order_column is specified. It avoids failing Model.hash_tree when the tree_scope isn't ordered by generations and building the tree will fail at hash_tree.rb:52 because the parent_id isn't yet key in the hash.

@mceachen
Copy link
Collaborator

mceachen commented Aug 3, 2013

LGTM. Thanks!

mceachen added a commit that referenced this pull request Aug 3, 2013
Fix _ct.scope_with_order when no order_column is specified
@mceachen mceachen merged commit 3015246 into ClosureTree:master Aug 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants