diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-17 23:49:39 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-17 23:49:39 -0400 |
commit | 95593f0419b1ab2e2ace5ed971204d74c10ac2fb (patch) | |
tree | 61f53d6b3f7d648c88892c75c57103d0c613acda | |
parent | c776bbb15a9917d16977d2b87f856083bc3f0781 (diff) | |
parent | 9e3ede7e14628f7c3f394899e2b4f48b9724a549 (diff) | |
download | rails-95593f0419b1ab2e2ace5ed971204d74c10ac2fb.tar.gz rails-95593f0419b1ab2e2ace5ed971204d74c10ac2fb.tar.bz2 rails-95593f0419b1ab2e2ace5ed971204d74c10ac2fb.zip |
Merge pull request #21660 from amitsuroliya/improve_docs
Correct ArgumentError message in ActiveSupport conversions docs [ci s…
-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 d80df21e7d..c5cc31abc5 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -32,7 +32,7 @@ class Array # ['one', 'two', 'three'].to_sentence # => "one, two, and three" # # ['one', 'two'].to_sentence(passing: 'invalid option') - # # => ArgumentError: Unknown key :passing + # # => ArgumentError: Unknown key: :passing. Valid keys are: :words_connector, :two_words_connector, :last_word_connector, :locale # # ['one', 'two'].to_sentence(two_words_connector: '-') # # => "one-two" |