なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2015/03/31)

2015/03/31分のコミットです。

CHANGELOGへの追加はありませんでした。


Revert "Remove Array#inquiry"

Array#inquiryメソッドを削除したコミットをrevertしています。

ArrayInquirer.newがあるから要らないんじゃないか、という理由で削除されたのですが、その後あっても良いのでは? という流れになり、revertされたようです。


Merge pull request #19021 from morgoth/activemodel-errors-refactoring

activemodel/lib/active_model/errors.rbの修正です。

普通にメソッド定義をしていたto_acountを、それぞれ、full_messagessizeのaliasとして定義するよう修正、及びempty?メソッドリファクタリングを行っています。


Require the extensions to tests pass in isolation

activesupport/test/array_inquirer_test.rbの修正です。

不足していたactive_support/core_ext/arrayのrequireを追加しています。


[ci skip] Combine complementary AR #find doc lines

activerecord/lib/active_record/relation/finder_methods.rbのdocの修正です。

findメソッドでレコードが見つからなった場合の挙動についての説明を修正しています。


Require Module#delegate core ext in ActiveModel::Naming

activemodel/lib/active_model/naming.rbの修正です。

Module#delegateメソッドを使用しているのにactive_support/core_ext/module/delegationのrequireが無かったので、requireを追加しています。


use Model.reset_column_information to clear table cache connection wide.

activerecord/test/cases/persistence_test.rbactiverecord/test/cases/primary_keys_test.rbの修正です。

テストの後処理でreset_column_informationを呼び出すよう修正しています。

テストの中でtableの情報を変更していまっているものがあり、その影響でテストがコケてしまう場合がある為、カラム情報を初期化する為に追加したようです。


Fix doc: set_callback also accepts an array of if:

activesupport/lib/active_support/callbacks.rbのdocの修正です。

set_callbackdoc内の、ifunlessオプションの値にArrayクラスも指定可能である旨説明を修正しています。


[ci skip] Replace query methods with a predicate

activesupport/lib/active_support/core_ext/module/aliasing.rbのdocの修正です。

alias_attributeメソッドが提供するメソッドの一覧に誤った説明があったのを修正しています。


remove extra newline from ApplicationJob template

railties/lib/rails/generators/rails/app/templates/app/jobs/application_job.rbの修正です。

クラスの中に不要な空行があったのを削除しています。