2016/01/04分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix typo in test desctiption [skip ci]
actionpack/test/controller/http_basic_authentication_test.rb
の修正です。
successful
をsuccesful
にタイポしている箇所があったのを修正しています。
Merge pull request #22890 from DNNX/times-map
actionpack/lib/action_dispatch/journey/path/pattern.rb
の修正です。
x.times.map{} を使用している箇所を Array.new(x){} を使用するよう修正しています。 Array.new(x){}のパターンの方が早い為との事です。PRにあったベンチ。
Benchmark.ips do |x| x.report('times.map') { 5.times.map{} } x.report('Array.new') { Array.new(5){} } x.compare! end __END__ Calculating ------------------------------------- times.map 21.188k i/100ms Array.new 30.449k i/100ms ------------------------------------------------- times.map 311.613k (± 3.5%) i/s - 1.568M Array.new 590.374k (± 1.2%) i/s - 2.954M Comparison: Array.new: 590373.6 i/s times.map: 311612.8 i/s - 1.89x slower
Merge pull request #22764 from stevenspiel/titleize_model_name_for_default_submit_button_value
actionview/lib/action_view/helpers/form_helper.rb
の修正です。
submit buttonのvalueに表示するmodel名を、小文字に変換するよう修正しています。