なるようになるブログ

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

rails commit log流し読み(2014/07/28)

2014/07/28分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Fix protect_from_forgery docs

actionpack/lib/action_controller/metal/request_forgery_protection.rbのdocの修正です。

request forgery protectionについての説明誤っていたのを修正しています。


No verbose backtrace by db:drop when database does not exist.

activerecord/lib/active_record/tasks/database_tasks.rbの修正です。

dropメソッドActiveRecord::NoDatabaseErrorをrescueするよう対応しています。

元々rescue処理が無かった為backtraceが出力されていたのを、rescue処理を追加し、明確なエラーメッセージを出力するよう対応しています。


[ci skip] Fix documentation for @macro and reflection types

activerecord/lib/active_record/associations/join_dependency/join_association.rbactiverecord/lib/active_record/reflection.rbのdocの修正です。

実行例の出力結果が誤っていたのを修正しています。


Fix example code of EachValidator [ci skip]

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

EachValidatorのexample codeでパラメータが足りてなかったのを修正しています。


Add where condition so select_one returns the correct record.

activerecord/test/cases/adapter_test.rbの修正です。

test_select_methods_passing_a_association_relationで、正確にレコードを取得する為にqueryにwhereメソッドを追加しています。


Merge pull request #16297 from calebthompson/extract-iterator-method

activerecord/lib/active_record/schema_dumper.rbの修正です。

tablesメソッド内で行っていたignore tableのチェック処理をメソッドに切り出しています。

gem等で機能拡張する際に、メソッドに切りだされていた方が対応しやすい為のようです。


Added nodoc to change_table

activerecord/lib/active_record/migration/command_recorder.rbの修正です。

change_tableメソッドに:nodoc:を追加しています。