Skip to content

Commit

Permalink
Misc refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 7, 2009
1 parent 58c0d20 commit 28367ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/dm-pagination/pager.rb
Expand Up @@ -64,9 +64,7 @@ def to_html uri, options = {}
raise ArgumentError, 'invalid :size; must be an odd number' if @size % 2 == 0
@size /= 2
"<div class=\"#{Pagination.defaults[:pager_class]}\">" + first_link + previous_link + '<ul>' +
more(:before) +
intermediate_links.join("\n") +
more(:after) +
more(:before) + intermediate_links.join("\n") + more(:after) +
'</ul>' + next_link + last_link + '</div>'
end

Expand Down

0 comments on commit 28367ee

Please sign in to comment.