なるようになるブログ

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

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

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

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

railties/CHANGELOG.md


[ci skip] Unify the code comment in ActionView::Renderer#render_template.

actionview/lib/action_view/renderer/renderer.rbのdocの修正です。

render_templateメソッドのdocでは"Direct accessor to〜"、render_partialメソッドのdocでは"Direct accessor to〜"と同じ内容を説明するのに、 異なる表現が使われていたのを、"Direct access to 〜"に統一しています。


Add missing :html option in determine_template error message.

actionview/lib/action_view/renderer/template_renderer.rbの修正です。

TemplateRenderer#determine_templateメソッドに不正なオプションが渡された際に表示するエラーメッセージ内の有効なオプションの一覧から:htmlオプションが漏れていたので、追加しています。


Partially merge #17650

PostgreSQLのtype cast処理をruby-pg gem 経由で行うよう修正したPRがあり、そのコミットの一部をマージしています。

ruby-pgの方はCで書かれており、大分高速になる(簡単なベンチマークだと50% up)との事なのですが、 PRが大きすぎて一度に全部はマージ出来ないので、レビュー出来た部分から少しずつコミットしていくようにしたようです。

このコミットではOIDを内部的にintegerで管理するよう修正しています。


Partially merge #17650

先のコミット同様、PostgreSQLのtype cast処理のコミットです。

独自に行っていたarray型の変換処理を、PG::TextEncoder::Arrayクラスを使用するよう修正しています。


[skip ci] Update configuring.md with #18846

rails guideのConfiguring Rails Applicationsの修正です。

先日追加されたconfig.active_record.warn_on_records_fetched_greater_thanについての説明を追加しています。


Merge pull request #19541 from jonatack/warn-on-loading-large-query-sets


Correct doc sentence [ci skip]

rails guideのActive Record Query Interfaceの修正です。

Dynamic Findersの項の説明内のタイポを修正しています。


Missing require 'active_support/deprecation'

activesupport/lib/active_support/callbacks.rbactivesupport/lib/active_support/core_ext/module/aliasing.rbactivesupport/lib/active_support/core_ext/module/deprecation.rbの修正です。

ActiveSupport::Deprecationクラスを使用しているのに、active_support/deprecationがrequireされてなかったので、requireを追加しています。


respect pluralize_table_names when generate fixture file. fixes #19519

railties/lib/rails/generators/named_base.rbrailties/lib/rails/generators/test_unit/model/model_generator.rbの修正です。

fixture fileを作成する際、pluralize_table_namesの設定に合わせて、出力するファイル名を複数形/単数形にするよう修正しています。


[skip ci] Improve warn_on_records_fetched documentation

activerecord/lib/active_record/core.rbactiverecord/lib/active_record/relation/record_fetch_warning.rbのdocの修正です。

warn_on_records_fetchedのdocについて、

  • dection -> detection に修正
  • exceeds threshold -> exceeds the threshold に修正
  • 細かなグラマーの修正

を行っています。