aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-09-07 07:56:31 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-09-07 07:59:19 +0900
commit736edb982856f0de04d4566f657c0c84f145e7ef (patch)
treed8be8b8ed03001ad28c3226912306d5f426c700a /activemodel/CHANGELOG.md
parent0cbbe515d33d29085aefba9f04e5dd4171348a1b (diff)
downloadrails-736edb982856f0de04d4566f657c0c84f145e7ef.tar.gz
rails-736edb982856f0de04d4566f657c0c84f145e7ef.tar.bz2
rails-736edb982856f0de04d4566f657c0c84f145e7ef.zip
Formatting CHANGELOGs [ci skip]
Fixing code block rendering, indentation, backticks, etc.
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md25
1 files changed, 13 insertions, 12 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 0b2fa37787..6048911217 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -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
- ```
-
- After:
- ```
- contact = Contact.new(created_at: Time.utc(2006, 8, 1))
- contact.as_json["created_at"] # => "2006-08-01T00:00:00.000Z"
- ```
+ 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"
+ ```
*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