Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Dec 17, 2024
1 parent fe39396 commit 16076cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<% if page == current_page %>
<span class="page-link" aria-label="Current Page, Page <%= page %>" aria-current="true"><%= page %></span>
<% else %>
<%= helpers.link_to_specific_page @facet_field.paginator, "Page: #{page}", page.to_i, params: @facet_field.search_state.to_h.merge(page: page), class: "page-link" %>
<%= helpers.link_to_specific_page @facet_field.paginator, page.to_i, "Page: #{page}", class: "page-link" %>
<% end %>
</li>
<!-- Render ellipsis for pages that would be just outside of the range (3,last page - 2) if they aren't show pages -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# [hyc-override] https://github.com/kaminari/kaminari/blob/v1.2.2/kaminari-core/lib/kaminari/helpers/helper_methods.rb
Kaminari::Helpers::HelperMethods.module_eval do
# Helper to generate a link to a specific page
def link_to_specific_page(scope, name, page = 1 **options)
def link_to_specific_page(scope, page = 1, name, **options)
begin
# Validate inputs
raise ArgumentError, 'Scope is required and must respond to :total_pages' unless scope&.respond_to?(:total_pages)
Expand Down

0 comments on commit 16076cf

Please sign in to comment.