Skip to content

Commit 415b69d

Browse files
authored
Fixes errors when options[param] is nil
1 parent 0f5b324 commit 415b69d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ajax-datatables-rails/datatable/datatable.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def page
6868
end
6969

7070
def get_param(param)
71+
return {} if options[param].nil?
7172
options[param].to_unsafe_h.with_indifferent_access
7273
end
7374

0 commit comments

Comments
 (0)