Fixed class name in raise-clause of find_by_#{slug_name}! method. Extracted building initial slug to separate method (if user want to replace initial slug generation - it can do it now). Simplified max_counter algorithm.
Fixed class name in raise-clause of find_by_#{slug_name}! method.
Extracted building initial slug to separate method (if user want to replace initial slug generation - it can do it now).
Simplified max_counter algorithm.

deepredsky/mongoid-slug,digitalplaywright/mongoid-slug,tjblonsk/mongoid-slug,fxposter/mongoid-slug,rrodrigu3z/mongoid-slug,mysociety/mongoid-slug,siong1987/mongoid-slug,theycallmeswift/mongoid-slug,wzowee/mongoid-slug,zakwanhaj/mongoid-slug,Exygy/mongoid-slug,s12chung/mongoid-slug,SolarCS/mongoid-slug,mongoid/mongoid-slug,dblock/mongoid-slug,fajrif/mongoid-slug