2018/08/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #33511 from albertoalmagro/change-references-from-rake-to-rails-command
各種コマンドについて説明している箇所で、説明にrake task
を使用しているのをrails command
を使用するよう修正しています。
Merge pull request #33454 from azbshiri/extend-affects-nested-attributes
activerecord/lib/active_record/nested_attributes.rb
の修正です。
associationにextend
オプションでmoduleを指定している + accepts_nested_attributes_for
を使用している場合に、<association>_attributes
メソッドでassocationをbuildした際にextend
オプションで指定したmoduleのメソッドがよばれないバグがあったのを修正しています。
Support skip nil for cache fetch (#25437)
activesupport/lib/active_support/cache.rb
の修正です。
ActiveSupport::Cache#fetch
メソッドにskip_nil
オプションを追加しています。skip_nil
オプションにtrueを指定した場合、結果がnilの場合は値をキャッシュしないようになっています。
cache.fetch('foo') { nil } cache.fetch('bar', skip_nil: true) { nil } cache.exist?('foo') # => true cache.exist?('bar') # => false