Browse files

explain how `to_param` wil truncate long values. [ci skip] refs #12900.

  • Loading branch information...
1 parent b33a752 commit e7c90e646b48b7995401e3db963431664f045b00 @senny senny committed Nov 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/lib/active_record/integration.rb
View
3 activerecord/lib/active_record/integration.rb
@@ -81,6 +81,9 @@ module ClassMethods
# user.id # => 123
# user_path(user) # => "/users/123-fancy-pants"
#
+ # Values longer than 20 characters will be truncated. The value
+ # is truncated word by word.
+ #
# user = User.find_by(name: 'David HeinemeierHansson')
# user.id # => 125
# user_path(user) # => "/users/125-david"

0 comments on commit e7c90e6

Please sign in to comment.