2017/07/27分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Fix search input’s type & placeholder conflict in Routing Error page
actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb
の修正です。
Routing Error Pageの検索用inputに-webkit-appearance: textfield;
を指定しています。
ブラウザがデフォルトで設定するplaceholderとhtmlで設定しているplaceholderがコンフリクトしてしまっていた為、ブラウザ側のplaceholderを表示しないようにする為設定したようです。
before
after
Use _relation_for_itself
wherever possible
activerecord/lib/active_record/persistence.rb
の修正です。
自身のrelationを取得する処理を独自に行っていたのを、_relation_for_itself
メソッドを使用するよう修正しています。_relation_for_itself
メソッドはその為のメソッドの為。
Merge pull request #28695 from koic/integer_type_has_precision_option_in_oracle
activerecord/test/cases/comment_test.rb
の修正です。
schema dumpにcommentが含まれる事を確認するテストがOracle adapterでコケてしまっていたのを修正しています。
+ if current_adapter?(:OracleAdapter) + assert_match %r[t\.integer\s+"rating",\s+precision: 38,\s+comment: "I am running out of imagination"], output + else + assert_match %r[t\.integer\s+"rating",\s+comment: "I am running out of imagination"], output + end
Oracle adapterの場合、precision
の指定が無くてもdumpにprecision
が出力されてしまうからのようです。
Fix division where a duration is the denominator
activesupport/lib/active_support/duration.rb
の修正です。
Fix implicit calculations with scalars and durationsの影響で、分母にDuration
を使用した除算の結果がおかしくなってしまっていたのを修正しています。
# before 86400 / 1.hour # => 86400 hours 1.day / 1.hour # => 0 days # after 86400 / 1.hour # => 24 1.day / 1.hour # => 24
5.1.1までと同じように、Integerの結果がかえるようになっています。