aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-04 07:27:33 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-10-04 07:27:33 +0900
commitfced30c3738542211f761bb1ccdeff8441c4587e (patch)
treebf371d8687733a8ad32a8bb857016e72e5577360
parent723ff351e105a3546f1112e70b7f6d204717127f (diff)
downloadrails-fced30c3738542211f761bb1ccdeff8441c4587e.tar.gz
rails-fced30c3738542211f761bb1ccdeff8441c4587e.tar.bz2
rails-fced30c3738542211f761bb1ccdeff8441c4587e.zip
Cleanup CHANGELOGs [ci skip]
* Add missing credit * Add backticks * Fix indentation * Remove trailing spaces And some minor tweaks.
-rw-r--r--actionmailer/CHANGELOG.md2
-rw-r--r--activerecord/CHANGELOG.md22
-rw-r--r--activesupport/CHANGELOG.md8
3 files changed, 16 insertions, 16 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md
index fe60f8a6a1..49afec9a12 100644
--- a/actionmailer/CHANGELOG.md
+++ b/actionmailer/CHANGELOG.md
@@ -3,7 +3,7 @@
assert_enqueued_email_with ContactMailer, :welcome do
ContactMailer.welcome.deliver_later
end
-
+
*Mikkel Malmberg*
* Allow Action Mailer classes to configure their delivery job.
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index f73e27b91f..288f22a9d3 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,22 +1,22 @@
-* PostgreSQL `tsrange` now preserves subsecond precision
+* PostgreSQL `tsrange` now preserves subsecond precision.
PostgreSQL 9.1+ introduced range types, and Rails added support for using
- this datatype in ActiveRecord. However, the serialization of
- PostgreSQL::OID::Range was incomplete, because it did not properly
+ this datatype in Active Record. However, the serialization of
+ `PostgreSQL::OID::Range` was incomplete, because it did not properly
cast the bounds that make up the range. This led to subseconds being
dropped in SQL commands:
- (byebug) from = type_cast_single_for_database(range.first)
- 2010-01-01 13:30:00 UTC
+ Before:
- (byebug) to = type_cast_single_for_database(range.last)
- 2011-02-02 19:30:00 UTC
+ connection.type_cast(tsrange.serialize(range_value))
+ # => "[2010-01-01 13:30:00 UTC,2011-02-02 19:30:00 UTC)"
- (byebug) "[#{from},#{to}#{value.exclude_end? ? ')' : ']'}"
- "[2010-01-01 13:30:00 UTC,2011-02-02 19:30:00 UTC)"
+ Now:
- (byebug) "[#{type_cast(from)},#{type_cast(to)}#{value.exclude_end? ? ')' : ']'}"
- "['2010-01-01 13:30:00.670277','2011-02-02 19:30:00.745125')"
+ connection.type_cast(tsrange.serialize(range_value))
+ # => "[2010-01-01 13:30:00.670277,2011-02-02 19:30:00.745125)"
+
+ *Thomas Cannon*
* Passing a `Set` to `Relation#where` now behaves the same as passing an
array.
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index c95f95d076..c7924fa9ae 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -61,12 +61,12 @@
Previously:
'one_two'.camelize(true)
- => nil
+ # => nil
Now:
'one_two'.camelize(true)
- => ArgumentError: Invalid option, use either :upper or :lower.
+ # => ArgumentError: Invalid option, use either :upper or :lower.
*Ricardo Díaz*
@@ -81,12 +81,12 @@
Prior to Rails 5.1:
5.minutes % 2.minutes
- => 60
+ # => 60
Now:
5.minutes % 2.minutes
- => 1 minute
+ # => 1 minute
Fixes #29603 and #29743.