diff --git a/lib/pagy/extras/trim.rb b/lib/pagy/extras/trim.rb index 8fc1416f9..350fc1f04 100644 --- a/lib/pagy/extras/trim.rb +++ b/lib/pagy/extras/trim.rb @@ -19,7 +19,7 @@ def pagy_link_proc_with_trim(pagy, link_extra='') p1url = pagy_trim_url(url, "#{p_vars[:page_param]}=#{MARKER}") p1 = %( (n, text=n, extra='') { start = n == 1 ? p1 : "#{a}#{n}#{b}" + -> (n, text=n, extra='') { start = n.to_i == 1 ? p1 : "#{a}#{n}#{b}" "#{start}#{ if n == p_prev ; ' rel="prev"' elsif n == p_next ; ' rel="next"' else '' end } #{extra}>#{text}" }