diff options
author | David Cornu <davidjcornu@gmail.com> | 2015-03-23 14:43:18 -0400 |
---|---|---|
committer | David Cornu <davidjcornu@gmail.com> | 2015-03-23 15:47:37 -0400 |
commit | a64f3e419598bce0ce2eb9e41dcccb676edb02e2 (patch) | |
tree | 22f067fe3284dd874cd8b95f98ecc978d0d95fc1 /activesupport/lib/active_support | |
parent | 4a0f314d8a54c090e53400f84508a3118c0fe2b4 (diff) | |
download | rails-a64f3e419598bce0ce2eb9e41dcccb676edb02e2.tar.gz rails-a64f3e419598bce0ce2eb9e41dcccb676edb02e2.tar.bz2 rails-a64f3e419598bce0ce2eb9e41dcccb676edb02e2.zip |
Make sure Array#to_sentence always returns a String
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 2 |
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 080e3b5ef7..d80df21e7d 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -74,7 +74,7 @@ class Array when 0 '' when 1 - self[0].to_s.dup + "#{self[0]}" when 2 "#{self[0]}#{options[:two_words_connector]}#{self[1]}" else |