diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb index f8aa0c55db..27576b1e61 100644 --- a/activerecord/lib/active_record/integration.rb +++ b/activerecord/lib/active_record/integration.rb @@ -81,6 +81,9 @@ module ActiveRecord # 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"