2015/08/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Sprockets 4.0 を使えるようにする為の対応を行っています。対応内容は下記の通りです。
デフォルトでSourceMap生成するようになったし、babelも使用出来るようになったしで、大分便利そうです。
Correct cache store superclass in comment
activesupport/lib/active_support/cache.rbのdocの修正です。
lookup_storeメソッドのdocに記載されていた、生成されるオブジェクトのクラス名の説明に誤りがあったのを修正しています。
Cleaned up generators tests using internal assertion helper
railties/test/generators/actions_test.rbの修正です。
generatorsのテストのmock処理に、Minitest::Mockクラスを使用していたのを、テスト用のヘルパーメソッド(assert_called_with、assert_called)を使用するよう修正しています。
Removed mocha from ActionMailer
AcionMailerのテストの修正です。
ActionMailerのテストのmock処理に、mochaを使用していたのを、テスト用のヘルパーメソッド(assert_called_with、assert_called)を使用するよう修正しています。
uniqueness validation raises error for persisted record without pk.
activerecord/lib/active_record/errors.rb、
activerecord/lib/active_record/validations/uniqueness.rbの修正です。
primary keyが設定されてないmodelで、uniqueness validatorを使用した際に、NoMethodError - undefined methodto_sym' for nil:NilClass:`がraiseされていたのを、適切なエラーメッセージが表示されるよう修正しています。
エラー例。
UnknownPrimaryKey - Unknown primary key for table dashboards in model\n Can not validate uniqueness for persisted record without primary key`
fix path of annotations.rake [ci skip]
railties/lib/rails/source_annotation_extractor.rbのdocの修正です。
SourceAnnotationExtractorクラスのdoc内に記載されているannotations.rakeへのpathが誤っていたのを修正しています。