2018/10/04分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix the docs for Module#parents and related methods in guides [ci skip]
rails guideのActive Support Core Extensions
の修正です。
Extensions to Module
の項の、Module#parent
、 Module#parents
、 及び Module#parent_name
メソッドをmodule_parent
、 module_parents
、 module_parent_name
に修正しています。Rename Module#parent
, Module#parents
, and Module#parent_name
to module_parent
, module_parents
, and module_parent_name
.のフォローアップ対応。
Move test_fixtures and render_context to separate files
Active Recordの修正です。
activerecord/lib/active_record/fixtures.rb
に定義されていたActiveRecord::FixtureSet::RenderContext
classとActiveRecord::TestFixtures
moduleをそれぞれ別のファイルに定義するよう修正しています。
actionview/lib/action_view/template.rb
の修正です。
不要な空白を削除しています。
Merge pull request #34055 from Edouard-chin/ec-logger-fix
Active Supportの修正です。
custom loggerを作成する際に、ActiveSupport::LoggerSilence
とActiveSupport::LoggerThreadSafeLevel
をincludeすればsilencing機能が使える旨guideに説明があったのですが、実際は違っていました(必要な初期化処理が呼ばれない、メソッドのオーバーライドが正しく行われない等の問題があった)。
で、それを解決する為、ActiveSupport::Logger
で行っていたメソッドのオーバーライドをActiveSupport::LoggerThreadSafeLevel
moduleで行うよう修正しています。また、ActiveSupport::LoggerSilence
でActiveSupport::LoggerThreadSafeLevel
をincludeするようにし、ActiveSupport::LoggerSilence
をincludeすればsilencing機能が使えるよう対応しています。
Don't use deprecated LoggerSilence
activesupport/test/silence_logger_test.rb
の修正です。
deprecateになったトップレベルのLoggerSilence
を使っている箇所があったのを修正しています。
Merge pull request #33936 from schneems/schneems/cache-micro-optimizations
activesupport/lib/active_support/cache.rb
の修正です。
Store#merged_options
メソッドでoptions
が空の場合、不要なmerge
メソッドの呼び出しを行わないよう修正しています。
Remove unreachable database warning
activerecord/lib/active_record/railtie.rb
の修正です。
Active Recordの初期化処理で、establish_connection
を呼び出す + ActiveRecord::NoDatabaseError
をrescueして適切なメッセージを表示する、という処理があったのから、ActiveRecord::NoDatabaseError
をrescueする処理を削除しています。
establish_connection
はActiveRecord::NoDatabaseError
をraiseする事が無い(establish_connection
は今はDBへの接続を行わない)為。
Escape table name so that it can be used in regular expression
activerecord/test/cases/relation_test.rb
の修正です。
Relationのmergeに関するテストで、table名に対してRegexp.escape
を実行するよう修正しています。
SQL Server adapterでは、quoteしたtable名に[
を使用しており(e.g. "[authors]"
)、正規表現のメタ文字をエスケープしないとテストが通らない為。