Skip to content

Commit

Permalink
Return orders as an array instead of a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jdurand committed Jul 15, 2015
1 parent 12f682a commit 4f57b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/randumb/relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build_order_scope(options, ranking_column=nil)
order(order_clause)
else
# keep prior orders and append random
all_orders = (orders + [order_clause]).join(", ")
all_orders = (orders + [order_clause])
# override all previous orders
reorder(all_orders)
end
Expand Down

0 comments on commit 4f57b91

Please sign in to comment.