diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-11-15 16:11:26 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-11-15 16:11:26 +0100 |
commit | e7c90e646b48b7995401e3db963431664f045b00 (patch) | |
tree | d1bced8835126f6457d4516b1f75262269956777 /activerecord | |
parent | b33a752f990fed0df8f2187ae98556104d8b683b (diff) | |
download | rails-e7c90e646b48b7995401e3db963431664f045b00.tar.gz rails-e7c90e646b48b7995401e3db963431664f045b00.tar.bz2 rails-e7c90e646b48b7995401e3db963431664f045b00.zip |
explain how `to_param` wil truncate long values. [ci skip] refs #12900.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/integration.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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" |