2015/03/25分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Update ActiveSupport::Subscriber docs
activesupport/lib/active_support/subscriber.rb
のdocの修正です。
ActiveSupport::Subscriber.attach_to
メソッドの使い方が変更になっていた(Allow attaching to AS::Notifications namespace up front by dasch · Pull Request #12285 · rails/railsのが、docに反映されていなかったので、修正内容に合わせて、attach_to
メソッドの設定方法を修正しています。
activerecord/lib/active_record/inheritance.rb
の修正です。
STIに関するメソッド(find_sti_class
、type_condition
)のリファクタリングを行っています。
が、テストが壊れてしまったらしく、直ぐrevertされています。
Revert "Merge pull request #19500 from ccutrer/dry_sti_subclass_finding"
DRY up STI subclass logic のrevertです。テストが壊れてしまった為。
Add changelog entry for #19271
actionpack/CHANGELOG.md
の修正です。
HTTPのstatus codeが304の場合に設定してはならないContent-Type ヘッダーが設定されてしまっていたバグを修正したコミット(304 response should not include Content-Type header by eagletmt · Pull Request #19271 · rails/rails)についてCHANGELOGに追記しています。
[ci skip] Update 4.2 Release notes with more assert_select information.
rails guideのRuby on Rails 4.2 Release Notes
の修正です。
assert_select
メソッドの変更について、正規表現を使用している場合のexampleを追加しています。
Avoid loading user's psqlrc when loading test structure
activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
の修正です。
database structure ファイルを読み込む際、個人のpsqlrc
ファイルを読み込まないよう修正しています。
- Kernel.system("psql -q -f #{Shellwords.escape(filename)} #{configuration['database']}") + Kernel.system("psql -X -q -f #{Shellwords.escape(filename)} #{configuration['database']}")
psqlrcに\timing
等を設定していた場合に、行読む込む度にTime
が表示されてしまい、邪魔な為との事です。
update config.assets.digest
default value in guides [ci skip]
rails guideのThe Asset Pipeline
の修正です。
config.assets.digest
のdepelopment環境でのデフォルトが、Rails 4.2からtrue
になったのですが、guideではfalse
である旨説明がされてしまっていたので、修正しています。
[ci skip] Active Record Validations guide fixes
rails guideのActive Record Validations
の修正です。
以下を行っています。
Documenting remove_column as a reversible migration method [ci skip]
rails guideのActive Record Migrations
の修正です。
remove_column
メソッドの第三引数に型情報を指定してあげる事で、rollback実行時に、元のカラムを復元する事が出来る旨説明を追加しています。
例。
remove_column :posts, :slug, :string, null: false, default: '', index: true