Skip to content

Commit

Permalink
Fix for missing variables passed to pagy_anchor from pagy_nav (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Aug 1, 2024
1 parent 32f3945 commit 4ba0e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gem/lib/pagy/frontend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def pagy_info(pagy, id: nil, item_name: nil)
end

# Generic pagination: it returns the html with the series of links to the pages
def pagy_nav(pagy, id: nil, aria_label: nil, anchor_string: nil, **vars)
def pagy_nav(pagy, id: nil, aria_label: nil, **vars)
id = %( id="#{id}") if id
a = pagy_anchor(pagy, anchor_string:)
a = pagy_anchor(pagy, **vars)

html = %(<nav#{id} class="pagy nav" #{nav_aria_label(pagy, aria_label:)}>#{
prev_a(pagy, a)})
Expand Down

0 comments on commit 4ba0e86

Please sign in to comment.