File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
lib/ajax-datatables-rails Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def as_json(*)
3434 recordsTotal : records_total_count ,
3535 recordsFiltered : records_filtered_count ,
3636 data : sanitize_data ( data ) ,
37- } . merge ( get_additional_data )
37+ } . merge ( additional_data )
3838 end
3939
4040 def records
@@ -64,23 +64,6 @@ def search_columns
6464
6565 private
6666
67- # This method is necessary for smooth transition from
68- # `additinonal_datas` method to `additional_data`
69- # without breaking change.
70- def get_additional_data
71- if respond_to? ( :additional_datas )
72- puts <<-WARNING
73- `additional_datas` has been deprecated and
74- will be removed in next major version update!
75- Please use `additional_data` instead.
76- WARNING
77-
78- additional_datas
79- else
80- additional_data
81- end
82- end
83-
8467 def sanitize_data ( data )
8568 data . map do |record |
8669 if record . is_a? ( Array )
You can’t perform that action at this time.
0 commit comments