Skip to content

Commit 3d9dc6e

Browse files
committed
Wrap order calls in Arel.sql to avoid Rails 6.0 deprecation warnings.
1 parent 0d8ad12 commit 3d9dc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ajax-datatables-rails/orm/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def sort_records(records)
1818
queries << order.query(column.sort_query) if column && column.orderable?
1919
queries
2020
end
21-
records.order(sort_by.join(', '))
21+
records.order(Arel.sql(sort_by.join(', ')))
2222
end
2323

2424
def paginate_records(records)

0 commit comments

Comments
 (0)