Browse files

Remove defensive 'upcase' that errored on nil

A lowercase letter shouldn't have been generated, it would
only ever have been typed in, so rather than a verbose fix,
let's not worry about it.
  • Loading branch information...
jamiecobbett committed Oct 30, 2012
1 parent d1ca45e commit 487b53832335cb75e4da7146166c756c8409ff8d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paginate_alphabetically/view_helpers.rb
@@ -28,7 +28,7 @@ def alphabetical_links_to(available_letters)
def current_letter(available_letters)
- params[:letter].upcase || available_letters.first
+ params[:letter] || available_letters.first
def paginated_letter(available_letters, letter)

0 comments on commit 487b538

Please sign in to comment.