rails/rails — pull request #12967 by kuldeepaggarwal (2013-11-20 13:51:55+00:00)
Title: providing user to pass options to `AR::Base.to_param` method

This allow user to pass options to `AR::Base.to_param` so that s/he can truncate the length accordingly, e.g.
`to_param :name, length: 50` # => this will truncate the name(word by word) after 50 characters