mirror of https://github.com/rails/rails
Merge pull request #42111 from rthbound/correction_in_docs_for_to_sentence_method
Corrects #to_sentence documentation for :words_connector [ci-skip]
This commit is contained in:
commit
d5bb6f4e34
|
@ -16,12 +16,12 @@ class Array
|
|||
#
|
||||
# ==== Options
|
||||
#
|
||||
# * <tt>:words_connector</tt> - The sign or word used to join the elements
|
||||
# in arrays with two or more elements (default: ", ").
|
||||
# * <tt>:two_words_connector</tt> - The sign or word used to join the elements
|
||||
# in arrays with two elements (default: " and ").
|
||||
# * <tt>:words_connector</tt> - The sign or word used to join all but the last
|
||||
# element in arrays with three or more elements (default: ", ").
|
||||
# * <tt>:last_word_connector</tt> - The sign or word used to join the last element
|
||||
# in arrays with three or more elements (default: ", and ").
|
||||
# * <tt>:two_words_connector</tt> - The sign or word used to join the elements
|
||||
# in arrays with two elements (default: " and ").
|
||||
# * <tt>:locale</tt> - If +i18n+ is available, you can set a locale and use
|
||||
# the connector options defined on the 'support.array' namespace in the
|
||||
# corresponding dictionary file.
|
||||
|
|
Loading…
Reference in New Issue