なるようになるブログ

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

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

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

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

actionmailer/CHANGELOG.md


makes it sound less misleading

actionpack/lib/action_dispatch/http/request.rbの修正です。

xml_http_request?メソッドのdocの修正をしています。説明を修正しています。


Merge pull request #15970 from lengarvey/add_configuration_option_for_mail_preview

actionmailer/lib/action_mailer/preview.rbactionmailer/lib/action_mailer/railtie.rbの修正です。

configにconfig.action_mailer.preview_enabled追加しています。

元々Action Mailer Previewはdevelopmentでしか見れなかったのです、このオプションを設定する事で、development意外のenvでもPreviewを確認出来るようになりました。便利。


Rename preview_enabled option to show_previews

直ぐ上のコミットでマージされた、preview_enabledshow_previewsに名前が変わっています。


Add regression tests for keys on nested associations

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

nested associationsのテストケースを追加しています。


do not hold on to a stale connection object. fixes #15998

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

このコミット以来、SQLite3を使用している際に、rails serverがエラーになっていたバグを対応しています。

connection objectを保持するよう対応されていたのですが、connectionがcloseしてしまうケースがあり、エラーになってしまっていたのを対応しています。


Tiny follow-up to #15987 and 088b4c3e [ci skip]

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

不要なスペースの削除、インデントの整理等。


Revert "Merge pull request #15394 from morgoth/fix-automatic-maintaining-test-schema-for-sql-format"

Fixed automatic maintaining test schema to properly handle sql structure schema format.をrevertしています。

むう。revertの理由が良く解らない…。


Don't error when duping a record with no PK

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

resetメソッドを追加しています。PKの無いレコードをdupするとエラーになっていたのを対応しています。


Merge pull request #16007 from nishantmodak/flash_msg_as_string

actionpack/lib/action_dispatch/middleware/flash.rbのdocの修正です。

flashにobjectが渡せるとdocに記載されていたのですが、実際渡せるのはprimitive-types (String, Array, Hash) だけなので、その旨説明を修正しています。