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 method
to_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が誤っていたのを修正しています。