diff options
author | Xavier Noria <fxn@hashref.com> | 2009-09-16 01:15:14 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-09-16 01:15:14 +0200 |
commit | c37034d8e8e1d54a30c80591908724aa5119d4df (patch) | |
tree | 1268685381d170e33f47abb34e5e0f8119139924 /railties/guides/source | |
parent | 68e433a3233d958335385a46af03bf50238a0d6c (diff) | |
download | rails-c37034d8e8e1d54a30c80591908724aa5119d4df.tar.gz rails-c37034d8e8e1d54a30c80591908724aa5119d4df.tar.bz2 rails-c37034d8e8e1d54a30c80591908724aa5119d4df.zip |
AS guide: str[0, 1] -> str.at(0) in an example
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_support_overview.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index ac326d5a24..4fa7a85464 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -796,7 +796,7 @@ This iterator takes a block and builds an ordered hash with its return values as <ruby> entries_by_surname_initial = address_book.group_by do |entry| - entry.surname[0, 1].upcase + entry.surname.at(0).upcase end </ruby> |