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.
2 parents 11ffb58 + 79ed2eb commit f7744b6Copy full SHA for f7744b6
lib/ajax-datatables-rails/base.rb
@@ -54,9 +54,9 @@ def records
54
55
def fetch_records
56
records = get_raw_records
57
- records = sort_records(records)
58
- records = filter_records(records)
59
- records = paginate_records(records) unless params[:length] == '-1'
+ records = sort_records(records) if params[:order].present?
+ records = filter_records(records) if params[:search].present?
+ records = paginate_records(records) unless params[:length].present? && params[:length] == '-1'
60
records
61
end
62
0 commit comments