8000 Remove deprecated method · imranrrr/ajax-datatables-rails@b06604e · GitHub
[go: up one dir, main page]

Skip to content

Commit b06604e

Browse files
committed
Remove deprecated method
1 parent 189ef11 commit b06604e

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)
0