2016/08/06分のコミットです。
CHANGELOGへの追加はありませんでした。
Add note about limitations of Windows Subsystem for Linux
rails guideのGetting Started with Rails
の修正です。
Creating the Blog Application
の項で、Windows Subsystem for Linuxではfile system notificationsが動作しない為、rails new
する際に、spring及びlistenを使わないよう、--skip-spring --skip-listen
オプションを指定するよう注記を追加しています。
Windows Subsystem for Linuxではlibinotifyが動作しないとの事です。参考:Filesystem watchers like libinotify do not work · Issue #216 · Microsoft/BashOnWindows
Fix GET JSON integration test request to use method override
actionpack/lib/action_dispatch/testing/integration.rb
、
actionpack/test/abstract_unit.rb
の修正です。
integration testのget
メソッドのas
オプションにjson
を指定した場合に、パラメータがJSONとして扱われないバグがあったのを修正しています。
Merge pull request #26051 from kamipo/make_name_and_binds_to_optional_args
Active Recordの修正です。
#exec_insert
、#exec_delete
、#exec_update
メソッドのname
、binds
引数のデフォルトにnil
を指定しています。
#select_all
、#select_one
、#select_value
等のメソッドの引数と合わせる為、との事です。
Merge pull request #25665 from kamipo/remove_unused_table_arg
activerecord/lib/active_record/validations/uniqueness.rb
の修正です。
ActiveRecord::Validations::UniquenessValidator#scope_relation
メソッドから、使用していないtable
引数を削除しています。
[ci skip] Fix broken URL in guides
rails guideのRuby on Rails 2.3 Release Notes
、
Ruby on Rails 3.0 Release Notes
の修正です。
Rails Documentation Projectsへのリンクが壊れていたのを修正しています。
Don't passing a nil value to case_sensitive_comparison
Active Recordの修正です。
各adapter内のcase_sensitive_comparison
メソッドで、引数のvalue
がnilでないかどうかチェックをしていたのを、呼び出し元(ActiveRecord::Validations::UniquenessValidator#build_relation
)でvalueがnilかどうかチェックし、nilの場合early return するよう修正しています。
Revert passing arel node with splat binds for where
activerecord/lib/active_record/relation/where_clause_factory.rb
、
activerecord/lib/active_record/validations/uniqueness.rb
の修正です。
Refactor `case_{sensitive|insensitive}_comparison`の対応により、where
メソッドの引数にarel node を渡せるようになってしまったのですが、where
に直接arel nodeを渡せるのは良くない(arel nodeはあくまで内部的に使用するクラスの為)、という事で、該当の処理をrevertしています。
Merge pull request #26023 from tekin/correct-acceptance-guidelines
rails guideのActive Record Validations
の修正です。
acceptance validatorのexampleコードに誤りがあったのを修正しています。
Merge pull request #25998 from kamipo/enum_with_alias_attribute
activerecord/lib/active_record/enum.rb
の修正です。
alias_attribute
で定義したattributeにenum
を使用した場合に、正常に動作しないバグがあったのを修正しています。