1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Formatting CHANGELOGs [ci skip]

Fixing code block rendering, indentation, backticks, etc.
This commit is contained in:
Ryuta Kamizono 2018-09-07 07:56:31 +09:00
parent 0cbbe515d3
commit 736edb9828
6 changed files with 34 additions and 27 deletions

View file

@ -1,4 +1,4 @@
* Expose ActionController::Parameters#each_key which allows iterating over
* Expose `ActionController::Parameters#each_key` which allows iterating over
keys without allocating an array.
*Richard Schneeman*

View file

@ -76,7 +76,9 @@
*Simon Coffey*
* Extract the `confirm` call in its own, overridable method in `rails_ujs`.
Example :
Example:
Rails.confirm = function(message, element) {
return (my_bootstrap_modal_confirm(message));
}
@ -84,7 +86,9 @@
*Mathieu Mahé*
* Enable select tag helper to mark `prompt` option as `selected` and/or `disabled` for `required`
field. Example:
field.
Example:
select :post,
:category,
@ -92,7 +96,9 @@
{ selected: "", disabled: "", prompt: "Choose one" },
{ required: true }
Placeholder option would be selected and disabled. The HTML produced:
Placeholder option would be selected and disabled.
The HTML produced:
<select required="required" name="post[category]" id="post_category">
<option disabled="disabled" selected="selected" value="">Choose one</option>

View file

@ -6,17 +6,17 @@
* Fix `ActiveModel::Serializers::JSON#as_json` method for timestamps.
Before:
```
contact = Contact.new(created_at: Time.utc(2006, 8, 1))
contact.as_json["created_at"] # => 2006-08-01 00:00:00 UTC
```
Before:
```
contact = Contact.new(created_at: Time.utc(2006, 8, 1))
contact.as_json["created_at"] # => 2006-08-01 00:00:00 UTC
```
After:
```
contact = Contact.new(created_at: Time.utc(2006, 8, 1))
contact.as_json["created_at"] # => "2006-08-01T00:00:00.000Z"
```
After:
```
contact = Contact.new(created_at: Time.utc(2006, 8, 1))
contact.as_json["created_at"] # => "2006-08-01T00:00:00.000Z"
```
*Bogdan Gusiev*
@ -25,6 +25,7 @@
change. There is a new method `#authenticate_XXX` where XXX is the
configured attribute name, making the existing `#authenticate` now an
alias for this when the attribute is the default 'password'.
Example:
class User < ActiveRecord::Base
@ -36,7 +37,7 @@
user.recovery_password_digest # => "$2a$04$iOfhwahFymCs5weB3BNH/uX..."
user.authenticate_recovery_password('42password') # => user
*Unathi Chonco*
*Unathi Chonco*
* Add `config.active_model.i18n_full_message` in order to control whether
the `full_message` error format can be overridden at the attribute or model

View file

@ -4,9 +4,9 @@
*Ryuta Kamizono*
* ActiveRecord::Base.configurations now returns an object.
* `ActiveRecord::Base.configurations` now returns an object.
ActiveRecord::Base.configurations used to return a hash, but this
`ActiveRecord::Base.configurations` used to return a hash, but this
is an inflexible data model. In order to improve multiple-database
handling in Rails, we've changed this to return an object. Some methods
are provided to make the object behave hash-like in order to ease the
@ -139,8 +139,8 @@
*Eddie Lebow*
* Add ActiveRecord::Base.create_or_find_by/! to deal with the SELECT/INSERT race condition in
ActiveRecord::Base.find_or_create_by/! by leaning on unique constraints in the database.
* Add `ActiveRecord::Base.create_or_find_by`/`!` to deal with the SELECT/INSERT race condition in
`ActiveRecord::Base.find_or_create_by`/`!` by leaning on unique constraints in the database.
*DHH*

View file

@ -1,9 +1,9 @@
* Maintain `html_safe?` on html_safe strings when sliced
* Maintain `html_safe?` on html_safe strings when sliced.
string = "<div>test</div>".html_safe
string[-1..1].html_safe? # => true
*Elom Gomez, Yumin Wong*
*Elom Gomez*, *Yumin Wong*
* Add `Array#extract!`.
@ -57,7 +57,7 @@
*Aaron "t.lo" Patterson*
* Add cpu_time, idle_time, and allocations to Event
* Add cpu_time, idle_time, and allocations to Event.
*Eileen M. Uchitelle*, *Aaron Patterson*
@ -71,7 +71,7 @@
*Jason Lee*
* Allow Range#=== and Range#cover? on Range
* Allow `Range#===` and `Range#cover?` on Range.
`Range#cover?` can now accept a range argument like `Range#include?` and
`Range#===`. `Range#===` works correctly on Ruby 2.6. `Range#include?` is moved

View file

@ -52,13 +52,13 @@
*Annie-Claude Côté*
* Don't generate unused files in `app:update` task
* Don't generate unused files in `app:update` task.
Skip the assets' initializer when sprockets isn't loaded.
Skip the assets' initializer when sprockets isn't loaded.
Skip `config/spring.rb` when spring isn't loaded.
Skip `config/spring.rb` when spring isn't loaded.
Skip yarn's contents when yarn integration isn't used.
Skip yarn's contents when yarn integration isn't used.
*Tsukuru Tanimichi*