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 0440297 + 25aac8f commit c9d040aCopy full SHA for c9d040a
lib/ajax-datatables-rails/base.rb
@@ -36,8 +36,8 @@ def get_raw_records
36
def as_json(options = {})
37
{
38
:draw => params[:draw].to_i,
39
- :recordsTotal => get_raw_records.count,
40
- :recordsFiltered => filter_records(get_raw_records).count,
+ :recordsTotal => get_raw_records.count(:all),
+ :recordsFiltered => filter_records(get_raw_records).count(:all),
41
:data => data
42
}
43
end
0 commit comments