なるようになるブログ

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

rails commit log流し読み(2018/09/15)

2018/09/15分のコミットです。


[ci skip] Fix documentation for Response#content_type

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

Response#content_typeメソッドのdocの内容がResponse#content_type=メソッドについて説明しているものだったので、そのままcontent_type=メソッドのdocに移動しています。


Update associations.rb API documentation [ci skip] (#33857)

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

belongs_toメソッドのdoc内、association=(associate)メソッドについて説明している箇所に既存レコードの変更や削除は行わない旨説明を追加しています。


Add test for config.active_storage.routes_prefix

railties/test/application/configuration_test.rbの修正です。

confg.active_storage.routes_prefixに任意の値を指定した場合のテストを追加しています。


Merge pull request #33878 from kamipo/fallback_to_unprepared_statement

Active Recordの修正です。

Merge pull request #33844 from kamipo/too_many_eager_load_ids でunprepared statementを使うように修正したのですが、bind paramsの数が制限(adapterに関わらず65535)を超えない場合は以前通りprepared statementを使うようにし、制限を越えた場合だけunprepared statementを使うよう修正しています。


Bump marcel for significant gem size reduction

Gemfile.lockの修正です。

marcel gemのバージョンを0.3.3に更新しています。

誤って含まれていたテストデータをパッケージに含まないようにした為、gemのサイズが大分削減されています。参考:Gemspec ignore test files for reduce gem size from 7.5MB to 7.5KB


Unlock pg verson

Gemfileの修正です。

pg gemのバージョンロックを削減しています。

pg 1.1.0だとActive Recordのテストがエラーになってしまう為にバージョンロックを追加したのですが、1.1.3だとテストが全て通るようになっている為。