2015/08/29分のコミットです。
CHANGELOGへの追加はありませんでした。
actionpack/lib/action_controller/metal/strong_parameters.rb
、
actionpack/test/controller/required_params_test.rb
の修正です。
ActionController::Parameter#require
メソッドの引数にArrayを指定出来るよう修正した、[Feature] params.require requires array of paramsのfollow upを行っています。
exampleにタイポがあったのを修正、require
メソッドで使用する値に誤りがあったのを修正、テスト名より適切な名前に修正、等をまとめて行っています。
Set the content-type to text/html
if the options[:html] is true
actionpack/lib/abstract_controller/rendering.rb
,
actionpack/test/controller/new_base/render_html_test.rb
の修正です。
render
メソッドのオプションに:html
を指定した場合に、content typeにMime::HTML
を設定するよう修正しています、
元々は、オプションに:plain
が指定された場合の挙動のみ記載されていたのですが、デフォルトで設定されるcontent typeが`Mime::TEXTの為、そちらの処理は不要との事で削除しています。
railties/lib/rails/test_unit/minitest_plugin.rb
の修正です。
rails test
コマンドで、環境を指定する-e
オプションの引数を必須にしています。
- opts.on("-e", "--environment [ENV]", + opts.on("-e", "--environment ENV",
これにより、-e
オプションが指定され、かつ引数の指定がない場合に、適切なエラークラスでraiseされるようになります。
# Before: $ ./bin/rails t -e rails/railties/lib/rails/test_unit/minitest_plugin.rb:21:in `block in plugin_rails_options': undefined method `strip' for nil:NilClass (NoMethodError) # After: $ ./bin/rails t -e /rails/railties/lib/rails/test_unit/minitest_plugin.rb:29:in `plugin_rails_options': missing argument: -e (OptionParser::MissingArgument)
revamps the docs of strong params require [ci skip]
actionpack/lib/action_controller/metal/strong_parameters.rb
のdocの修正です。
[Feature] params.require requires array of params の対応により、ActionController::Parameter#require
メソッドの引数にArrayを指定出来るようなったのに合わせて、require
メソッドのdocを全体的に修正しています。
actionpack/lib/action_controller/metal/strong_parameters.rb
のdocの修正です。
ActionController::Parameter#require
メソッドのdocにタイポがあったのを修正しています。
fixes example for consistency [ci skip]
actionpack/lib/action_controller/metal/strong_parameters.rb
のdocの修正です。
ActionController::Parameter#require
メソッドのdocのexampleに使用するメソッド名を、doc内で同一のメソッドを使用するよう修正しています。