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
590 stars 227 forks source link

v0.4.0 fail with default_scope #233

Closed inyerade closed 6 years ago

inyerade commented 7 years ago

I am working with ajax-datatables-rails v0.4.0

And add a default_scope and datatable fail with

 ERROR:  missing FROM-clause entry for table

I think this is similar or the same as #223 , because I fix with the same method.

I know the workaround but I post the issue because I think this may be an important issue. :smile:

n-rodriguez commented 6 years ago

https://rails-bestpractices.com/posts/2013/06/15/default_scope-is-evil/