diff options
author | amitkumarsuroliya <amitkumarsuroliya@gmail.com> | 2015-09-18 07:51:44 +0530 |
---|---|---|
committer | amitkumarsuroliya <amitkumarsuroliya@gmail.com> | 2015-09-18 07:51:44 +0530 |
commit | 9e3ede7e14628f7c3f394899e2b4f48b9724a549 (patch) | |
tree | 61f53d6b3f7d648c88892c75c57103d0c613acda | |
parent | c776bbb15a9917d16977d2b87f856083bc3f0781 (diff) | |
download | rails-9e3ede7e14628f7c3f394899e2b4f48b9724a549.tar.gz rails-9e3ede7e14628f7c3f394899e2b4f48b9724a549.tar.bz2 rails-9e3ede7e14628f7c3f394899e2b4f48b9724a549.zip |
Correct ArgumentError message in ActiveSupport conversions docs [ci skip]
This was happened after this commit https://github.com/rails/rails/commit/2ebf47aea21ff8ac10681e53e78dd7a0e5c31c6e
-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" |