Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jul 15, 2024
1 parent 39381a5 commit 17075fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/avo/base_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class BaseResource
include Avo::Concerns::HasHelpers
include Avo::Concerns::Hydration
include Avo::Concerns::Pagination
include ActionView::Helpers::SanitizeHelper

# Avo::Current methods
delegate :context, to: Avo::Current
Expand Down
4 changes: 2 additions & 2 deletions lib/avo/concerns/pagination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def apply_pagination(index_params:, query:)
send PAGINATION_METHOD[pagination_type.to_sym],
query,
items: index_params[:per_page],
link_extra: "data-turbo-frame=\"#{sanitize(params[:turbo_frame])}\"", # Add extra arguments in pagy 7.
anchor_string: "data-turbo-frame=\"#{sanitize(params[:turbo_frame])}\"", # Add extra arguments in pagy 8.
link_extra: "data-turbo-frame=\"#{ActionView::Base.full_sanitizer.sanitize(params[:turbo_frame])}\"", # Add extra arguments in pagy 7.
anchor_string: "data-turbo-frame=\"#{ActionView::Base.full_sanitizer.sanitize(params[:turbo_frame])}\"", # Add extra arguments in pagy 8.
params: extra_pagy_params,
size: pagination_hash[:size]
end
Expand Down

0 comments on commit 17075fb

Please sign in to comment.