2017/09/21分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Update payload names for
sql.active_record
instrumentation to be more descriptive. - Use given algorithm while removing index from database.
Merge pull request #30616 from yhirano55/update_layouts_and_rendering
rails guideのLayouts and Rendering in Rails
の修正です。
Rendering by Default: Convention Over Configuration in Action
の項にあるindex.html.erb
のexampleがscaffoldで生成されるindex.html.erb
と微妙に内容が異なっていたのを、同じ内容になるよう修正しています。
Merge pull request #30629 from yhirano55/add_scope_to_has_one_attached_macro
activestorage/lib/active_storage/attached/macros.rb
の修正です。
ActiveStorage::Attached::Macros
moduleにblobをeager loadする為のscope(scope :"with_attached_#{name}"
)を追加しています。
Merge pull request #30624 from bogdanvlviv/deprecate_Module_reachable
Active Supportの修正です。
Module#reachable?
メソッドをdeprecateにしています。rails内部でもう使用してない為deprecateにしたとの事です。
Flesh out ActiveStorage::Filename docs
activestorage/app/models/active_storage/filename.rb
のdocの修正です。
ActiveStorage::Filename
クラス及びクラス配下の各メソッドにdocを追加しています。
activestorage/app/models/active_storage/filename.rb
のdocの修正です。
ActiveStorage::Filename
クラスのdocのグラマーの修正を行っています。
Update Rails Guides about :autosave option
rails guideのActive Record Associations
の修正です。
:autosave
オプションについて説明している箇所に、:autosave
にfalseを指定した場合の挙動についての説明を追加しています。
Update payload names for sql.active_record
to be more descriptive.
activerecord/lib/active_record/relation.rb
の修正です。
sql.active_record
instrumentationのpayload nameに詳細な情報を出力するよう修正しています。
元々はSQL
としか表示されていなかったのですが、処理を行ったclass名 + 行った処理(Create
、Update
、Update All
等)を出力するようになっています。
Update link in The Asset Pipeline guide [ci skip]
rails guideのThe Asset Pipeline
の修正です。
Optimize cachingの説明へのリンクを修正しています。
Fix “warning: `*‘ interpreted as argument prefix”
activerecord/test/cases/instrumentation_test.rb
の修正です。
instrumentationのテストでRubyのwarning(warning:
*‘ interpreted as argument prefix`)が出ていたのを修正しています。
Use algorithm while removing index with db:rollback
activerecord/lib/active_record/migration/command_recorder.rb
の修正です。
migrationのchange
メソッドでindex生成処理にalgorithm
を指定した場合(e.g. add_index(:products, :name, algorithm: :concurrently)
)に、rollback処理でその指定したalgorithm
が使用されないバグがあったのを修正しています。