Skip to content

Commit 6658578

Browse files
committed
Do not split the collection
1 parent 3fa3b4b commit 6658578

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/active_admin/mongoid/document.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def columns_hash
115115

116116
def reorder sorting
117117
return unscoped if sorting.blank?
118-
options = sorting.split(/ |\./)
119-
options.shift if options.count == 3
118+
options = sorting.split(' ')
120119
field, order = *options
121120
unscoped.order_by(field => order)
122121
end

0 commit comments

Comments
 (0)