We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c1e4e commit 6d7baa5Copy full SHA for 6d7baa5
lib/active_admin/views/pages/index.rb
@@ -43,7 +43,8 @@ def items_in_collection?
43
#
44
# If we don't reorder, there may be some columns referenced in the order
45
# clause that requires the original select.
46
- collection.reorder("").limit(1).exists?
+
47
+ !!collection.reorder("").first
48
end
49
50
def build_collection
0 commit comments