Skip to content

Commit

Permalink
FIx for ambiguous order for children
Browse files Browse the repository at this point in the history
FIx for when children are used in a join statement with another awesome nested set model causing an ambigous order
  • Loading branch information
Joshua Novak authored and Joshua Novak committed Oct 12, 2015
1 parent 783b415 commit 23c3ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/awesome_nested_set/awesome_nested_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def acts_as_nested_set_relate_children!
) if acts_as_nested_set_options[ar_callback]
end

has_many :children, -> { order(quoted_order_column_name) },
has_many :children, -> { order(quoted_order_column_full_name) },
has_many_children_options
end

Expand Down

0 comments on commit 23c3ceb

Please sign in to comment.