2015/01/21分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Tests now run after_commit callbacks. You no longer have to declare
uses_transaction ‘test name’to test the results of an after_commit. - Introduce
ActiveRecord::Base#accessed_fields
Merge pull request #18458 from brainopia/fix_after_commit_for_fixtures
activerecord/lib/active_record/connection_adapters/abstract/transaction.rbの修正です。
transactional fixtures内でafter_commitコールバックを実行するよう修正しています。
TransactionManager should call rollback records
activerecord/lib/active_record/connection_adapters/abstract/transaction.rbの修正です。
TransactionManager#rollback_transactionでレコードのrollbackも呼び出すよう修正しています。
Fix code formatting in sanitize docs
actionview/lib/action_view/helpers/sanitize_helper.rbのdocの修正です。
SanitizeHelperモジュールのdocのフォーマットの修正を行っています。
actionview/lib/action_view/helpers/sanitize_helper.rbのdocの修正です。
SanitizeHelperモジュール内の各メソッドのdocについて、使い方、グラマー等書き直しを行っています。
Single instead of double quotes
actionview/lib/action_view/helpers/sanitize_helper.rbのdocの修正です。
文字列のダブルクォートをシングルクォートに修正しています。
Introduce ActiveRecord::Base#accessed_fields
読み込み済みのフィールドの一覧を取得来るActiveRecord::Base#accessed_fieldsメソッドを新規に作成しています。
例えば、selectで取得するフィールドを絞った場合に、その取得したフィールドの一覧を取得出来ます。
people = Person.select(:id) people.first.accessed_fields # => ["id"]
結構便利そうな。
Add missing AS core extension dependency
activemodel/lib/active_model/naming.rbの修正です。
不足していたactive_support/core_ext/module/remove_methodのrequireを追加しています。
Change 'a' to 'an' for 'attribute' word [ci skip]
activerecord/lib/active_record/attributes.rbのdocの修正です。
"a attribute" -> "an attribute"に修正しています。
Add missing options to Error Message Interpolation guide [CI skip]
rails guideのRails Internationalization (I18n) APIの修正です。
Error Message Interpolationの一覧にnumericality validationのother_thanオプションの説明が無かったので、追加しています。
Travis: Test on jruby-head only for now
.travis.ymlの修正です。
CIの対象にjruby-headを追加しています。