Skip to content

Commit

Permalink
Use page 1 in the params
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hulse committed Apr 18, 2012
1 parent 118927a commit 6d71cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kaminari/helpers/tags.rb
Expand Up @@ -25,7 +25,7 @@ def to_s(locals = {}) #:nodoc:
end

def page_url_for(page)
@template.url_for @params.merge(@param_name => (page <= 1 ? nil : page))
@template.url_for @params.merge(@param_name => (page < 1 ? nil : page))
end
end

Expand Down

0 comments on commit 6d71cdc

Please sign in to comment.