2017/03/21分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #27939 from kamipo/fix_select_all_with_legacy_binds
activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
の修正です。
select_all
メソッドのbinds
引数に多重配列を渡した場合にエラーになってしまうバグがあったのを修正しています。
Merge pull request #28473 from kamipo/delegate_uniq_to_records
activerecord/lib/active_record/relation/delegation.rb
の修正です。
Include `Enumerable` in `ActiveRecord::Relation`でActiveRecord::Relation
がEnumerable
をincludeするようになった事によに不要になったdelegate(collect
、map
等)を削除しています。
Fix the blog post template header
tasks/release.rb
の修正です。
gemのveriyについての説明で、hashいnSHA-256を使用しているのに表題がSHA-1になってしまっていたのを修正しています。
Merge pull request #28406 from chukitow/feature/user-form-with-instead-of-form-for-scaffold
railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
の修正です。
scaffold generatorが生成するviewで、form_for
ではなくform_with
を使用するよう修正しています。
Default to yielding a form
variable.
railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
の修正です。
scaffold generatorが生成するviewで、form
を格納する変数名をf
と省略名を使用lしていたのを、略さずform
とするよう修正しています。
Update the maintenance policy [ci skip]
rails guideのMaintenance Policy for Ruby on Rails
の修正です。
Bug Fixes
、Security Issues
の対象となるバージョンから4.2を削除しています。
Fix typo in Caching with Rails Guide [skip ci]
rails guideのCaching with Rails: An Overview
の修正です。
Caching in Development
の項で、development
をdevelopement
にタイポしている箇所があったのを修正しています。
Remove 5.0.0 entry from 5.1.0 CHANGELOG [ci skip]
railties/CHANGELOG.md
の修正です。
5.0.0に含まれていた対応が5.1.0のCHANGELOGに含まれてしまっていたので削除しています。
Merge pull request #28497 from jhawthorn/unscope_specific_where_value
activerecord/lib/active_record/relation/where_clause.rb
の修正です。
where
に指定した値をunscope
した場合に、bindが正しく行われないバグがあったのを修正しています。
posts = Post.where(title: "Welcome to the weblog", body: "Such a lovely day") posts.unscope(where: :title).to_sql # SELECT "posts".* FROM "posts" WHERE "posts"."body" = 'Such a lovely day' posts.unscope(where: :body).to_sql # SELECT "posts".* FROM "posts" WHERE "posts"."title" = 'Such a lovely day' # `"title" = "Welcome to the weblog"` となるべきが、`body`の値がbindされてしまっていた