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(*)
34
34
recordsTotal : records_total_count ,
35
35
recordsFiltered : records_filtered_count ,
36
36
data : sanitize_data ( data ) ,
37
- } . merge ( get_additional_data )
37
+ } . merge ( additional_data )
38
38
end
39
39
40
40
def records
@@ -64,23 +64,6 @@ def search_columns
64
64
65
65
private
66
66
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
-
84
67
def sanitize_data ( data )
85
68
data . map do |record |
86
69
if record . is_a? ( Array )
You can’t perform that action at this time.
0 commit comments