2014/12/08分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix grammar of sentence in Reflection documentation
https://github.com/rails/rails/commit/480e911859aa267b7edae18c9d319c2b3a871e73
のdocの修正です。
Reflection
のクラスメソッドについての説明について、グラマーの修正を行っています。
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
のdocの修正です。
ConnectionPool#Queue
クラスの各メソッドのdocについて、グラマーの修正を行っています。
Make error message clearer that :on requires a symbol, not a string
activerecord/lib/active_record/transactions.rb
の修正です。
after_commit
、after_rollback
の引数の:on
オプションに指定出来るのは、:create、 :destroy、:updateだけで、それ以外の値を指定した場合エラーになるのですが、
そのエラーメッセージ内の:create、 :destroy、:updateがStringクラスになっていたのですが、実際はStringは指定出来ない(Symbolのみ可能)という事で、エラーメッセージもSymbolで表すよう修正しています。
# before ":on conditions for after_commit and after_rollback callbacks have to be one of create,destroy,update" # after ":on conditions for after_commit and after_rollback callbacks have to be one of [:create, :destroy, :update]"
Add note to Store about uniqueness validation (#17954) [skip ci]
activerecord/lib/active_record/store.rb
のdocの修正です。
store_accessor
で定義した値に対してuniqueness
チェックを行いたい場合、custom validation を使用する必要がある旨説明を追加しています。