2017/04/18分のコミットです。
CHANGELOGへの追加はありませんでした。
Add (more) documentation to to_time
activesupport/lib/active_support/core_ext/date/conversions.rb
のdocの修正です。
to_time
メソッドのdocにアプリで指定したtimezoneが設定された値が必要な場合、in_time_zone
メソッドを使うよう説明を追加しています。
rails guideのGetting Started with Rails
の修正です。
What is Rails?
の項のRuby language
をRuby programming language
に修正しています。
activesupport/lib/active_support/core_ext/date/conversions.rb
のdocの修正です。
to_time
メソッドのdocの終端にピリオドを追加しています。
Use more specific check for :format in route path
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
route pathに:format
が含まれているかどうかを、より厳密にチェックするよう修正しています。
元々はpathに:format
という文字が含まれているかどうかでチェックしていたのですが、それだと/formats/:format_id/items
というようなpathの場合に、:format_id
という部分がマッチしてしまい、予期せぬ挙動となってしまう為、正規表現(%r{(?:\(\.:format\)+|\.:format|/)\Z}
)にマッチするかどうかで見るよう修正しています。
Fix Enumerable#sum redefined warning
activesupport/lib/active_support/core_ext/enumerable.rb
の修正です。
Ruby 2.4以上でEnumerable#sum
を再定義する事によるwarningが出てしまっていたので、Enumerable#sum
が定義されている場合はそちらを使用するよう修正しています。