2016/04/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
[ci skip] Parameter filter performs regular expression partial matching
rails guideの修正です。
config.filter_parameters
について説明している箇所に、parameter filterは正規表現でマッチ処理を行う旨説明を追加しています。
Fix method String#upcase_first
activesupport/lib/active_support/inflector/methods.rb
の修正です。
空文字列に対してupcase_first
メソッドを呼び出した場合に、NoMethodError
でエラーになってしまっていたのを、エラーではなく空文字を返すよう修正しています。
Ensure associations still work when the table name contains a dot
Active Recordの修正です。
テーブル名にドットが含まれている場合に、associationsが正しく動作しないバグがあったのを修正しています。
Deprecate table names containing dots
activerecord/lib/active_record/model_schema.rb
の修正です。
テーブル名にドットが含まれている場合のサポートがdeprecateになりました。
多くのバックエンドでドットは特別な意味を持つ為、との事だったのですが、PostgreSQLでは普通にschemaにドットを使用する為、後ほどrevertされています。
Prepared statements shouldn't share a cache with unprepared statements
Active Recordの修正です。
find_by用のstatement cacheがprepared statements が有効・無効に関わらず同じ値を使用していたのを、有効・無効それぞれの場合で別に値を管理するよう修正しています。
prepared statementsが有効時にキャッシュされた値がprepared statementsを無効にした場合でも使用されてしまうバグがあり、その対応の為。
Deprecate datetime_field
and datetime_field_tag
helpers.
actionview/lib/action_view/helpers/form_helper.rb
、
actionview/lib/action_view/helpers/form_tag_helper.rb
の修正です。
datetime_field
、datetime_field_tag
がdeprecateになりました。
datetime input typeがHTML仕様から削除された為との事です。今後は代わりにdatetime_local_field
、datetime_local_field_tag
を使う必要があります。知らなかった。
参考:Remove input[type=datetime] · Issue #336 · whatwg/html
Revert "Deprecate table names containing dots"
activerecord/lib/active_record/model_schema.rb
の修正です。
先ほどコミットされた、テーブル名にドットが含まれている場合のサポートをdeprecateにしたコミットをrevertしています。
Merge pull request #24379 from Gaurav2728/sanitizer-helper-update-doc
actionview/lib/action_view/helpers/sanitize_helper.rb
のdocの修正です。
sanitiser helperはRails 5.1で削除する旨docにコメントを追加しています。
Fixes broken link in 'Ruby on Rails 2.2 Release Notes' [ci skip]
rails guideのRuby on Rails 2.2 Release Notes
の修正です。
Finally. Ruby on Rails gets internationalized - artweb design へのリンクが壊れていたのを、修正しています。