2016/07/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #25757 from monkey-mas/add-tests-for-response_test
actionpack/test/dispatch/response_test.rb
の修正です。
http statusが100, 101, 102, 204の場合にContent-Lengthが設定されていない事を確認するテスト、及び、http statusが100, 101, 102, 204, 304の時にmessage-bodyが含まれていない事を確認するテストを追加しています。
activesupport/lib/active_support/core_ext/class/attribute.rb
のdocの修正です。
Class#class_attribute
メソッドのdocのグラマーの修正を行っています。
[ci skip] add class level documentation to ActiveModel::Type::Boolean
activemodel/lib/active_model/type/boolean.rb
のdocの修正です。
ActiveModel::Type::Boolean
クラスのdocを追加しています。
Always prefer class types to query types when casting group
Active Recordの修正です。
group
+ calculationメソッドを使用した場合に、adapterによって、結果のHashのkeyがtype castされてない状態になってしまっているというバグがあったのを修正しています。
class Ticket < ActiveRecord::Base enum priority: [:high, :middle, :low] end
# before Ticket.group(:priority).count #=> {0=>1} # after Ticket.group(:priority).count #=> {'high'=>1}
因みにPostgreSQLのみtype castされてない状態で値が変えされてしまっていました。