mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] ActiveSupport CHANGELOG fixes
1. spacing issues 2. spelling correction 3. grammar correction 4. Add missing docs
This commit is contained in:
parent
9fddcdd99e
commit
7a8fb281d8
2 changed files with 21 additions and 20 deletions
|
@ -9,7 +9,7 @@
|
||||||
*Kostiantyn Kahanskyi*
|
*Kostiantyn Kahanskyi*
|
||||||
|
|
||||||
* Introduced new configuration option `active_support.test_order` for
|
* Introduced new configuration option `active_support.test_order` for
|
||||||
specifying the order test cases are executed. This option currently defaults
|
specifying the order in which test cases are executed. This option currently defaults
|
||||||
to `:sorted` but will be changed to `:random` in Rails 5.0.
|
to `:sorted` but will be changed to `:random` in Rails 5.0.
|
||||||
|
|
||||||
*Akira Matsuda*, *Godfrey Chan*
|
*Akira Matsuda*, *Godfrey Chan*
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
*Peter Jaros*
|
*Peter Jaros*
|
||||||
|
|
||||||
* `determine_constant_from_test_name` does no longer shadow `NameError`s
|
* `determine_constant_from_test_name` does no longer shadow `NameError`s
|
||||||
which happen during constant autoloading.
|
which happens during constant autoloading.
|
||||||
|
|
||||||
Fixes #9933.
|
Fixes #9933.
|
||||||
|
|
||||||
|
@ -240,9 +240,9 @@
|
||||||
|
|
||||||
*Xavier Noria*
|
*Xavier Noria*
|
||||||
|
|
||||||
* Fixed backward compatibility isues introduced in 326e652.
|
* Fixed backward compatibility issues introduced in 326e652.
|
||||||
|
|
||||||
Empty Hash or Array should not present in serialization result.
|
Empty Hash or Array should not be present in serialization result.
|
||||||
|
|
||||||
{a: []}.to_query # => ""
|
{a: []}.to_query # => ""
|
||||||
{a: {}}.to_query # => ""
|
{a: {}}.to_query # => ""
|
||||||
|
|
|
@ -199,6 +199,7 @@ class String
|
||||||
# 'employee_salary'.humanize # => "Employee salary"
|
# 'employee_salary'.humanize # => "Employee salary"
|
||||||
# 'author_id'.humanize # => "Author"
|
# 'author_id'.humanize # => "Author"
|
||||||
# 'author_id'.humanize(capitalize: false) # => "author"
|
# 'author_id'.humanize(capitalize: false) # => "author"
|
||||||
|
# '_id'.humanize # => "Id"
|
||||||
def humanize(options = {})
|
def humanize(options = {})
|
||||||
ActiveSupport::Inflector.humanize(self, options)
|
ActiveSupport::Inflector.humanize(self, options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue