jbox-web / ajax-datatables-rails

A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
MIT License
585 stars 228 forks source link

NoMethodError: undefined method `or' for nil:NilClass #372

Closed cmchetanm closed 3 years ago

cmchetanm commented 3 years ago

https://github.com/jbox-web/ajax-datatables-rails/blob/a1879513f15934781eed14bde28db3d931e985a2/lib/ajax-datatables-rails/orm/active_record.rb#L46

cmchetanm commented 3 years ago

it should be end.compact.reduce(:or)

n-rodriguez commented 3 years ago

Hi! Do you have a test case?

cmchetanm commented 3 years ago

Hi @n-rodriguez , will submit the test case.

n-rodriguez commented 3 years ago

Hi @n-rodriguez , will submit the test case.

thanks!

n-rodriguez commented 3 years ago

Hi there! Any news?