mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add countless pagination
This commit is contained in:
1 parent
5670390b37
commit
9645332e48
17 files changed
+64
-30
No files matched your search
@@ -55,6 +55,14 @@ class ApplicationController < ActionController::Base
|
||||
request.session[:impersonated_user_id] = user.uuid
|
||||
end
|
||||
|
||||
def pagy_auto(collection, **keyword_args)
|
||||
if current_ability.can?(:manage, :countless)
|
||||
pagy_countless(collection, **keyword_args)
|
||||
else
|
||||
pagy(collection, **keyword_args)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def with_locale(&)
|
||||
|
||||
Reference in new issue
Block a user