2016/06/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #25339 from prathamesh-sonpatki/reuse-validate-index-length
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
の修正です。
add_index_options
メソッドでindex長のチェックを独自に行っていたのを、既存のvalidate_index_length!
メソッドを使用するよう修正しています。
Example had results the wrong way round [ci skip]
rails guideのActive Record and PostgreSQL
の修正です。
Database Views
の項にあったexampleコードの実行結果が、実際の結果と異なっていたのを修正しています。
Merge pull request #25271 from kamipo/prevent_range_error_for_exists
Active Recordの修正です。
FinderMethods#exists?
に不正な値(intより巨大な数字等)を指定した場合、RangeError
がraiseされてしまっていたのを、必ずbooleanの値(エラーの場合false
)を返すよう修正しています。
actionview/lib/action_view/digestor.rb
の修正です。
template digestを作成する際に、keyにformatの情報も使用するよう修正しています。
app/views/api/todos/_todo.json.jbuilder
とapp/views/todos/_todo.html.erb
というように、内部で扱われるpathが同じ(todos/_todo
)でformatが違うようなtemplateの場合に、同じdigestが生成されてしまうバグがあった為。
Explicity find with the rendered format to handle searching multiple view paths correctly
actionview/lib/action_view/digestor.rb
の修正です。
ActionView::PathSet#initialize
に複数のview pathを渡した際に、ActionView::Digestor.tree
メソッドでformatの情報を正しく取得出来るよう修正しています。が
Fix finding templates for digesting for / requests that render a non-default (html) template
actionview/lib/action_view/digestor.rb
の修正です。
Accpet headerに*/*
が指定された場合に、digestの計算時にhtml
以外のformatのtemplateが含まれないバグがあったのを修正しています。
actionview/test/template/digestor_test.rb
の修正です。
test_different_formats
をtest_different_formats_with_same_logical_template_names_results_in_different_digests
にリネームしています。
Add test for nested html dependencies with same logical name as templates for other formats
actionview/test/template/digestor_test.rb
の修正です。
同じlogical nameで違うformatのテンプレートがある時に、ActionView::Digestor.tree
で正しいformatの値が取得出来る事を確認するテストを追加しています。
[ci skip] Remove duplicate alias documentation in ActiveModel::Validations
activemodel/lib/active_model/validations.rb
のdocの修正です。
ActiveModel::Validations#valid?
メソッドのdoc内に、validate
メソッドのaliasである旨の説明が複数あったので、片方削除しています。