2015/01/12分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #18435 from kuldeepaggarwal/f-remove-unnecessary-require
各コンポーネントからrbconfig
のrequireを削除しています。デフォルトでload済みの為。
rails guideのCaching with Rails
の修正です。
SQLキャッシュについての説明を追加しています。
generatorの修正です。secure token生成用のgeneratorを追加しています。
型にtoken
を指定すると、自動でhas_secure_token
の設定をしてくれます。実行例。
./bin/rails g model user name:string email:string reset_password_token:token
# migration class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.string :name t.string :email t.string :reset_password_token t.timestamps end add_index :users, :reset_password_token, unique: true end end # user.rb class User < ActiveRecord::Base has_secure_token :reset_password_token end
Fix assertion that was never run
actionmailer/test/base_test.rb
の修正です。
メソッド呼び出しが足りず、期待通りのテストが行えてなかったテストがあったのを修正しています。
Add test for AM::Validation::Callbacks with :on
activemodel/test/cases/validations/callbacks_test.rb
の修正です。
ActiveModel::Validation::Callbacks
にon
オプションを指定した場合のテストを追加しています。
Remove unused "deprecated_reload" method
activemodel/test/cases/dirty_test.rb
の修正です。
使用していないdeprecated_reload
メソッドを削除しています。
Remove unused AV fixtures from AP tests
actionpack/test/controller/render_test.rb
の修正です。
使用していないテスト用メソッドを削除しています。
Merge pull request #18436 from deepj/fork-detection
activesupport/lib/active_support/testing/isolation.rb
の修正です。
forkメソッドが使用出来るかどうか確認するのにOSやplatformのチェックを行っていたのを、Process.respond_to?(:fork)
を使用するよう修正しています。
- !ENV["NO_FORK"] && ((RbConfig::CONFIG['host_os'] !~ /mswin|mingw/) && (RUBY_PLATFORM !~ /java/)) + !ENV["NO_FORK"] && Process.respond_to?(:fork)
Change 'a' to 'an' for 'XML' word [ci skip]
rails guideのActive Model Basics
の修正です。
a XML
-> an XML
に修正しています。
minor grammatical fix in documentation
rails guideのActive Record Basics
の修正です。
case
-> cases
に修正しています。