2014/04/24分のコミットです。
rails 4.1 でjson cookiesのmigrateを行った際に、エラーが発生してしまうケースがあったのの修正が行われています。
Fixed an issue with migrating legacy json cookies.
古いjson cookiesのmigrateの際にエラーが発生していたケースがあったのを修正しています。
VerifyAndUpgradeLegacySignedMessage
がmarshal encodedのみを想定していしまっていて、 :json
及び:hybrid
serializerで作られたデータを扱った際に、TypeError: incompatible marshal file format (can't be read)"
エラーが発生してしまったようです。
流れ的には、
- secret_tokenを設定している。かつ、serializerに
:json
または:hybrid
を指定している - secret_key_baseを使用するように設定する
- TypeErrorが発生する
という事のようです。
ActiveRecord::Base.no_touching
no longer triggers callbacks or start empty transactions.
rails 4.1から導入されたActiveRecord::Base.no_touching
で、after_touch
コールバックが呼ばれてしまっていたバグを修正しています。
no_touching
は名前の通りtouch
メソッドを呼ばれても何もしない、というメソッドなので、after_touch
コールバックは、呼ばれないのが正しい動きのようです。
Precompile the image we're referencing, too.
assetsについてのテストコードの修正です。config.assets.precompile
にrails.pngを追加しています。
Improve readability of contributing to rails guide. [ci skip]
rails guideの修正。contributing_to_ruby_on_rails
のページの説明(というか、グラマーか)を修正しています。
Fix a typo in the doc of forty_two AR FinderMethod
ActiveRecord::FinderMethods#forty_two
のコメントにタイポがあったのを修正しています。
[ci skip] Improve formatting and yml
こちらはActionMailer
のコメントの修正。yaml
-> yml
に修正しています。