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 2a0877f + c022c0f commit f18129dCopy full SHA for f18129d
lib/ajax-datatables-rails/base.rb
@@ -33,7 +33,7 @@ def as_json(*)
33
{
34
recordsTotal: records_total_count,
35
recordsFiltered: records_filtered_count,
36
- data: sanitize(data),
+ data: sanitize_data(data),
37
}.merge(get_additional_data)
38
end
39
@@ -81,7 +81,7 @@ def get_additional_data
81
82
83
84
- def sanitize(data)
+ def sanitize_data(data)
85
data.map do |record|
86
if record.is_a?(Array)
87
record.map { |td| ERB::Util.html_escape(td) }
lib/ajax-datatables-rails/version.rb
@@ -1,5 +1,5 @@
1
# frozen_string_literal: true
2
3
module AjaxDatatablesRails
4
- VERSION = '1.0.0'
+ VERSION = '1.0.1'
5
0 commit comments