2015/04/15分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #19736 from kmcphillips/master
ActionPack、ActionControllerの修正です。
default_form_builder
をcontrollerから指定出来るよう対応しています。
class AdminFormBuilder < ActionView::Helpers::FormBuilder def special_field(name) end end
class AdminAreaController < ApplicationController default_form_builder AdminFormBuilder end
<%= form_for(@instance) do |builder| %> <%= builder.special_field(:name) %> <% end %>
Fix typos in the documentation [ci skip]
Merge pull request #19736 from kmcphillips/master
のdocの修正です。
FormBuilder
クラスのdocにタイポがあったのを修正しています。
Removing GZip section since Sprockets 3.0 no longer create .gz files [ci skip]
rails guideのThe Asset Pipeline
の修正です。
GZip Compression
の項を丸々削除しています。
sprockets 3.0.0からassetのgzipファイルを生成しなくなっていたので、rails guideからもassetのgzipファイルについての記事を削除しています。
avoid double initialization error caused to sidekiq
activejob/test/support/integration/adapters/sidekiq.rb
の修正です。
Sidekiqを利用したインテグレーションテストで、Sidekiq::CLI#boot_system
が#{dummy_app_path}/config/environment.rb
を requireしようするとするのですが、左記ファイルはtest/support/integration/helper.rb
が既にrequire
済みのため、 double initialization errorが発生してしまっていたようです。
Sidekiq::CLI
を使用せず、Sidekiq::Launcher
を直接使用する事で対応したとの事です。
Enable Active Job integration tests again
.travis.yml
の修正です。
先のsidekiqに関するコミットでActiveJobのintegrationテストが正常に動作するようになったので、allow_failures
からActiveJobのintegrationテストを削除しています。
Use #prepend rather than using 2 aliases
activesupport/lib/active_support/core_ext/range/each.rb
、
activesupport/lib/active_support/core_ext/range/include_range.rb
の修正です。
RubyのバグによりModule#prepend
が使えず、alias_method
を使用している箇所があったのですが、Ruby 2.2.2で該当箇所がバグフィックスされており、masterブランチではRuby 2.2.2以上を必須にしているので、該当箇所についてもalias_method
ではなくModule#prepend
を使うよう修正しています。
Merge pull request #19446 from andersonDadario/fix_security_guide_captcha_03_21_2015
rails guideのRuby on Rails Security Guide
の修正です。
CAPTCHAs
の項に、positive CAPTCHA / Negative Captcha についての説明を追加しています。
Revert "Merge pull request #19755 from yuki24/activerecord/support-for-set"
Relation#where
メソッドの引数にSet
オブジェクトを渡せるようにしたコミットをrevertしています。
- これに対応すると、type cast処理で
Set
に変換出来なくなってしまう Set
を対応可能にする、という事はEnumerable
を対応可能にするという先例を作る事になるが、Enumerable
を直接指定する事は出来ないArray
は渡せるので、Set#to_a
を呼べば対応可能である事
上記理由でrevertしたとの事です。英語が大分あやしいので詳しくはPRのディスカッションをご確認下さい…。
Fix typos and improve the documentation
各種docまとめて修正です。
グラマー、タイポの修正、80文字を越える行の適切な位置に改行を追加等をまとめて行っています。
remove extra =
in form builder example [ci skip]
actionpack/lib/action_controller/form_builder.rb
のdocの修正です。
FormBuilder
のexampleにタイポがあったのを修正しています。
rails guideのThe Asset Pipeline
の修正です。
disc
-> disk
にタイポを修正しています。