2015/09/28分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix test that was failing because of typo
railties/test/application/routing_test.rbの修正です。
getをappにタイポしていた為にテスト落ちてしまっていた箇所があったのを、修正しています。
Merge pull request #21785 from vngrs/minor_doc_fix
actionview/lib/action_view/helpers/form_options_helper.rbのdocの修正です。
各doc内のグラマーの修正(a -> anに修正)を行っています。
Merge pull request #21790 from yui-knk/fix_doc_date_field
actionview/lib/action_view/helpers/form_helper.rbのdocの修正です。
date_fieldメソッドのdocで、デフォルトはobjectのto_dateメソッドが呼ばれる、と書いてあったのですが、実際はstrftime("%Y-%m-%d")が呼ばれる為、その旨docを修正しています。
activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb、
activerecord/lib/active_record/migration.rbのdocの修正です。
各doc内のグラマーの修正(a -> anに修正)を行っています。
Merge pull request #21780 from yui-knk/fix_ar_sanitize_doc
activerecord/lib/active_record/sanitization.rbのdocの修正です。
Sanitization moduleの各メソッドのdocの修正を行っています。修正内容は下記の通りです。
sanitize_sql_for_conditionsメソッドのdocにプリペアドステートメント、Stringを使用した場合のexampleを追加sanitize_sql_for_assignmentメソッドのdocに、引数にHash、Stringを使用した場合のexampleを追加sanitize_sql_likeメソッドのdocに、exampleを追加- add % style prepared statement example for sanitize_sql_array
sanitize_sql_arrayメソッドのdocに、プリペアドステートメントを使用した場合のexampleを追加- exampleコードのスペースを調整
Merge pull request #21783 from amitsuroliya/record_not_found
activerecord/lib/active_record/associations/collection_proxy.rbのdocの修正です。
各メソッドのdoc内にあったActiveRecord::RecordNotFoundが発生した場合のexampleの実行結果が、実際の内容と異なっていたのを修正しています。
Updated docs for transform_keys [ci skip]
activesupport/lib/active_support/core_ext/hash/keys.rbのdocの修正です。
transform_keysメソッドのdocに、transform_keysメソッドにblockを渡さなかった場合のexampleを追加しています。
check if @rake_patterns is defined
railties/lib/rails/test_unit/minitest_plugin.rbの修正です。
plugin_rails_initメソッドで、@rake_patternsを使用する前に、defined?で変数が存在するかどうかチェックしています。
rake経由以外でtestを実行した場合は@rake_patterns`が定義されておらず、その場合Rubyのwarningが表示されてしまう為、チェック処理を追加しています。
Make fuzzy sentence more clear
rails guideのConfiguring Rails Applicationsの修正です。
Connection Preferenceの項、config/database.ymlについて説明している箇所の言い回しを修正しています。
Updated docs for transform_values [ci skip]
activesupport/lib/active_support/core_ext/hash/transform_values.rbのdocの修正です。
transform_valuesメソッドのdocに、transform_valuesメソッドにblockを渡さなかった場合のexampleを追加しています。
Speed up Hash#transform_values when empty
activesupport/lib/active_support/core_ext/hash/transform_values.rbの修正です。
transform_valuesメソッドで、値がemptyだった場合にearly returnするよう修正しています。
def transform_values return enum_for(:transform_values) unless block_given? + return {} if empty?
Active Modelのattributesのコピー処理で、空のHashでtransform_valuesが呼ばれ、その処理の高速化の為に対応したとの事です。