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
を追加しています。