2018/07/22分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/lib/active_storage/attached.rb
、
activestorage/lib/active_storage/attached/model.rb
の修正です。
ActiveStorage::Attached
クラスから使用していないdependent
attributeを削除しています。
Merge pull request #33268 from benpickles/remove-pubdate-from-docs
actionview/lib/action_view/helpers/date_helper.rb
のdocの修正です。
time_tag
メソッドのdocに、Bring Boolean Attributes list for AV Tags helper upto speed with curr… で削除されたpubdate
を使用したexampleが残っていたのを削除しています。
Merge pull request #32984 from chiraggshah/min-thread-env-variable
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
の修正です。
config/puma.rb
でpumaのスレッド数を指定する、max threadsしか環境変数で指定出来なかったのを、min threadsも環境変数で指定出来るよう修正しています。
Merge pull request #33409 from utilum/correct_epxectations_to_meet_minitest_strict_mocking
Active Recordのテストの修正です。
mock処理にmochaを使用していたのを、Rails内部のヘルパーメソッド(assert_called
、assert_called_with
)を使用するよう修正しています
Merge pull request #33403 from bogdanvlviv/clarify-test_notes_finds_notes_in_custom_directories
railties/test/application/rake/notes_test.rb
の修正です。
rake notes
を実行した場合にDEPRECATION WARNINGが表示されることを確認するテストを追加しています。
Add implicit to path conversion to uploaded file (#28676)
actionpack/lib/action_dispatch/http/upload.rb
の修正です。
ActionDispatch::Http::UploadedFile
クラスにto_path
メソッドを追加しています。実装はtempfileのto_path
メソッドを呼び出しているだけ。
これにより、ActionDispatch::Http::UploadedFile
のインスタンスを直接File.read
に指定する事も出来るようなっています。
uploaded_file = ActionDispatch::Http::UploadedFile.new(tempfile: tmp_file) File.read(uploaded_file)
[ci skip] Use consistent hash syntax in AR docs
activerecord/lib/active_record/associations.rb
のdocの修正です。
.build
/ .create
メソッドのexampleコードでHashの古い記法(:key => 'value'
)を使用していたのを、新しい記法(key: 'value'
)を使用するよう修正しています。
doc内で記法を統一する為。
[ci skip] Tidy up formatting of examples
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
のdocの修正です。
add_index
メソッドのdoc内のexampleコードで、インデントがずれてexampleが正しく表示されない箇所があったのを修正しています。
Add render options in action_controller/renderer for api documentation [ci skip]
actionpack/lib/action_controller/renderer.rb
のdocの修正です。
render
メソッドのdocに使用出来るオプションについての説明を追加しています。
[ci skip] fix typo in Associations guide
rails guideのActive Record Associations
の修正です。
Creating Join Tables for has_and_belongs_to_many Associations
の項で、class名をタイポしている箇所があったのを修正しています。