[#1374] Revert "Merge pull request #1373 from betagouv/fix_pagination"

This reverts commit 5a56fe0182, reversing
changes made to 31aabcd6b6.
This commit is contained in:
Frederic Merizen 2018-01-30 14:43:56 +01:00
parent 3cff988bf3
commit 0ce26055d8
9 changed files with 136 additions and 7 deletions

View file

@ -109,4 +109,31 @@ class ApplicationController < ActionController::Base
})
end
end
def permit_smart_listing_params
# FIXME: remove when
# https://github.com/Sology/smart_listing/issues/134
# is fixed
self.params = params.permit(
dossiers_smart_listing:
[
:page,
:per_page,
{ sort: [:id, :'procedure.libelle', :state, :updated_at] }
],
gestionnaires_smart_listing:
[
:page,
:per_page,
{ sort: [:email] }
],
procedures_smart_listing:
[
:page,
:per_page,
{ sort: [:id, :libelle, :published_at] }
]
)
# END OF FIXME
end
end