2015/11/19分のコミットです。
CHANGELOGへの追加はありませんでした。
Rename 'key' to 'lock_id' or 'lock_name' for advisory locking
Active Recordの修正です。
advisory lockの処理で、変数名/メソッド名にkey
という名称を使っていたのを、場所毎にlock_id
、lock_name
という名称を使用するよう修正しています。
lockを識別するものの名称にkey
という名前を使っており、それは名前の選択として不適切だろう、という事で修正したとの事です。
lock_id
とlock_name
を使い分けているのは、MySQLのドキュメントではlock name
となっており、PostgreSQLのドキュメントではlock_id
となっており、それぞれの名称に合わせた為との事です。
Revert "Fixed a few grammar issues."
rails guideのグラマーの修正を行った、Fixed a few grammar issues. をrevertしています。
上記修正対応は、LanguageTool Style and Grammar Checkを使って行われたらしいのですが、元の書き方の方が慣用的に使われており、revertしたとの事です。
activesupport/lib/active_support/per_thread_registry.rb
の修正です。
不足していたactive_support/core_ext/module/delegation
のrequireを追加しています。
[ci skip] Indentation in cache examples
rails guideのUsing Rails for API-only Applications
の修正です。
Using the Cache Middleware
の項にあったexampleコードのインデントがずれてしまっていたのを修正しています。
guides, scaffold no longer used in getting started guide. Closes #22337.
rails guideのA Guide to Testing Rails Applications
の修正です。
Rails meets Minitest
の項で、"Getting Started with Rails
guideで使用したscaffold
コマンドについて〜" という説明があったのですが、
現状、Getting Started with Rails
ではscaffold
コマンドについての説明は行われていない為、scaffold
コマンドに言及していた箇所を修正しています。
Merge pull request #22077 from obduk/clean-up-logs
actionmailer/lib/action_mailer/log_subscriber.rb
の修正です。
各メソッドでログを出力する際、最初に改行を入れていたのを、削除しています。
- "\nSent mail to #{recipients} (#{event.duration.round(1)}ms)" + "Sent mail to #{recipients} (#{event.duration.round(1)}ms)"
この改行があるせいで、time stampとログメッセージが別の行になってしまっていたので、1行で表示されるよう削除したとの事です。
Change configuration-guide example
rails guideのConfiguring Rails Applications
の修正です。
Configuring Rails Components
の項で、config/application.rb
に記載されている内容について説明している箇所があるのですが、その説明している内容が、既にconfig/application.rb
に存在しない内容(config.autoload_paths += %W(#{config.root}/extras))だったので、今存在している内容(
config.time_zone = 'Central Time (US & Canada)'`)を使用するよう修正しています。
guides/rails_guides/kindle.rb
の修正です。