Skip to content

Commit f18129d

Browse files
author
Nicolas Rodriguez
authored
Merge pull request #326 from epipheus/sanitize-disambiguation
sanitize(data) disabiguation
2 parents 2a0877f + c022c0f commit f18129d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def as_json(*)
3333
{
3434
recordsTotal: records_total_count,
3535
recordsFiltered: records_filtered_count,
36-
data: sanitize(data),
36+
data: sanitize_data(data),
3737
}.merge(get_additional_data)
3838
end
3939

@@ -81,7 +81,7 @@ def get_additional_data
8181
end
8282
end
8383

84-
def sanitize(data)
84+
def sanitize_data(data)
8585
data.map do |record|
8686
if record.is_a?(Array)
8787
record.map { |td| ERB::Util.html_escape(td) }

lib/ajax-datatables-rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module AjaxDatatablesRails
4-
VERSION = '1.0.0'
4+
VERSION = '1.0.1'
55
end

0 commit comments

Comments
 (0)