2017/05/22分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Remove obsolete Guides source files [ci skip]
rails guideのRails Nested Model Forms
、A Guide to Profiling Rails Applications
を削除しています。
Nested Model Forms
の方はどこからもインデックスされていない、かつ、 Form Helpers guideの方で必要な情報はカバーされている為削除したとの事です。Profiling Rails Applications
の方は、雛形が1年以上前に作成されていたのですが、中身が作成される事は無かった為削除したとの事です。
Merge pull request #29163 from rails/fix-scalar-duration-calculation
activesupport/lib/active_support/duration.rb
の修正です。
scalarとdurationで四則演算を行った場合に、scalarが強制的に秒に変換されてしまっていたのを、元の型を維持したまま計算処理を行うよう修正しています。
具体的には、Date
とdurationで計算処理を行った際に、結果がDate
になるようになっています。
# before Time.zone = "Beijing" Date.civil(2017, 5, 20) # => Sat, 20 May 2017 2 * 1.day # => 172800 seconds date + 2 * 1.day # => Mon, 22 May 2017 00:00:00 CST +08:00 # after Time.zone = "Beijing" date = Date.civil(2017, 5, 20) # => Sat, 20 May 2017 2 * 1.day # => 2 days date + 2 * 1.day # => Mon, 22 May 2017
Improving docs for callbacks execution order [ci skip]
AbstractController::Callbacks
moduleのdocにAbstract Controllerで使用出来るcallback一覧を追記、及び、各docにcallbacksの定義は上書きされる旨説明を追加しています。
Simplify handling of prerequisites in Getting Started guide [ci skip]
rails guideのGetting Started with Rails
の修正です。
guideの先頭にある前提条件の説明を簡略化しています。RubyやSQLite3のインストールが必要である旨説明が記載されていたのですが、ガイド内の以降の項で詳細な説明があるため、先頭で記載されている必要は無い為との事です。
We always + 1 to LINE when class_evaling with <<
rails guieのAPI Documentation Guidelines
の修正です。
Dynamically Generated Methods
の項のexampleコードで、class_eval
メソッドを使用している箇所で__LINE__
に +1するのが漏れていたのを修正しています。
Update test link in ActionView javascripts README.md.
actionview/app/assets/javascripts/README.md
の修正です。
How to run tests
の項、テストを実行するURLの前後から括弧を削除しています。GitHubでみた際にクリック出来るようにする為、との事です。