なるようになるブログ

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

rails commit log流し読み(2018/10/08)

2018/10/08分のコミットです。

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

actionpack/CHANGELOG.md

activesupport/CHANGELOG.md


Fix test name to add missing "set"

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

rewhereメソッドでinverse instance keyが設定されない事を確認するテストで、テスト名にsetが不足していたのを修正しています。


Don't expose internal methods in the associations

activerecord/lib/active_record/associations/association.rbactiverecord/lib/active_record/associations/has_many_through_association.rbの修正です。

内部でだけ使用するメソッドの可視性をprivateに変更しています。


Deprecate ActionDispatch::Http::ParameterFilter in favor of ActiveSupport::ParameterFilter

Action Pack、Active Supportの修正です。

ActionDispatch::Http::ParameterFilterを Active Support配下(ActiveSupport::ParameterFilter)に移動しています。

Active RecordでParameterFilter classを使う予定(Configuration item config.filter_parameters could also filter out sensitive value of database column when call #inspect.の関連)があり、Action Packと共通で使えるようにする為にActive Support配下に移動しています。


[ci skip] Fix typo

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

cache_keyメソッドのdoc内のexampleコードで使用するclass名をタイポしている箇所があったのを修正しています。


Merge pull request #33324 from Jcambass/fix-only-path-option-in-url-for-with-arrays

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

url_forメソッドの引数にArray + only_pathオプションを指定した場合(e.g. url_for([:users, { only_path: false }]))にonly_pathオプションが無視されてしまうバグがあったのを修正しています。