aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorMatthew Mongeau <matt@toastyapps.com>2010-08-17 16:46:02 -0400
committerwycats <wycats@gmail.com>2010-08-17 13:52:37 -0700
commitdd55830bb279a4ef492727d6ffda169eb569ba27 (patch)
tree1b127920f6563fd5445bd48fb91d1bf32dbdd0c8 /activesupport/lib/active_support/core_ext
parentc017041e68c3b7ca4677db0ab420cb7d8bccb72f (diff)
downloadrails-dd55830bb279a4ef492727d6ffda169eb569ba27.tar.gz
rails-dd55830bb279a4ef492727d6ffda169eb569ba27.tar.bz2
rails-dd55830bb279a4ef492727d6ffda169eb569ba27.zip
to_sentence should return a duplicate
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb
index 7585137aca..baefa9cae4 100644
--- a/activesupport/lib/active_support/core_ext/array/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -26,7 +26,7 @@ class Array
when 0
""
when 1
- self[0].to_s
+ self[0].to_s.dup
when 2
"#{self[0]}#{options[:two_words_connector]}#{self[1]}"
else