lingz / alphabetical_paginate

An Alphabetical Pagination gem for Ruby on Rails
MIT License
24 stars 25 forks source link

Custom letters count in availableLetters variable #33

Closed dakariakin closed 9 years ago

dakariakin commented 9 years ago

Hello, is there way to make pagination with 'Av' or 'Ava' ? I want to set count of letters to 2, or 3, depending on count rows in db

dej611 commented 9 years ago

What's the aim of this?

If you increase the number of letters for each alphabet character to 3 you may end up with at thousands of buttons potentially.

Looking at the code it shouldn't be hard already (not in DB mode) to use it.

lingz commented 9 years ago

I agree with @dej611 the resolution would be too high for normal usage. It is a very simple modification if you want to do it though.