なるようになるブログ

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

rails commit log流し読み(2017/09/07)

2017/09/07分のコミットです。

CHANGELOGへの追加はありませんでした。


:scissors:

actionpack/CHANGELOG.mdの修正です。

不要なスペースを削除しています。


has_many :through with unscope should affect to through scope

activerecord/lib/active_record/associations/association_scope.rbactiverecord/lib/active_record/reflection.rbの修正です。

has_many :through association + unscopeを使用した場合に、through scopeをunscope出来ないバグがあったのを修正しています。


RuntimeReflection is not a subclass of PolymorphicReflection

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

RuntimeReflectionの親クラスをPolymorphicReflectionからAbstractReflectionに変更しています。

PolymorphicReflectionThroughReflectionで使う為のクラスで、RuntimeReflectionAssociationScopeで使う為のクラスであり、そもそも目的が別のクラスなので親子関係になっているのはおかしい、という事で修正されたようです。


Don’t pass table to last_chain_scope and next_chain_scope

activerecord/lib/active_record/associations/association_scope.rbactiverecord/lib/active_record/reflection.rbの修正です。

AssociationScope#last_chain_scope#next_chain_scopeメソッドの引数からtableを削除しています。

tableはメソッドの引数であるreflectionの情報の一部であり、そちらから取得出来る為削除したとの事です。


CI against JRuby 9.1.13.0

.travis.ymlの修正です。

CIで使用するJRubyのバージョンを9.1.13.0に更新しています。