2015/09/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Clarify CSRF script purpose and protection. Note how to deal with your own script tags.
guides/source/security.md
、guides/source/upgrading_ruby_on_rails.md
の修正です。
Improved explanation of the script tag CSRF behavior のフォローアップで、自身のサイトで<script>
タグを使用した場合についての説明を追記しています。
Removed mocha from Active Record Part 2
ActiveRecordのテストの修正です。
モック処理にmochaを使用していたのを、Rails内部のテスト用のヘルパーメソッドを使用するよう修正しています。
activerecord/lib/active_record/schema_dumper.rb
の修正です。
SchemaDumper#ignored?
メソッドで、schema migration用のテーブル名が、schema_migrations
固定になっていたのを、ActiveRecord::Base.schema_migrations_table_name
を使用するよう修正しています。
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
のdocの修正です。
Github
を GitHub
に修しています。タイポ。
Improved ActiveRecord Connection Pool docs [ci skip]
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
のdocの修正です。
disconnect!
メソッドのdoc内にあったタイポをまとめて修正しています。
Fix displaying mailer previews on non local requests.
railties/lib/rails/mailers_controller.rb
の修正です。
mailer previewは、他の設定に関わらず、ローカルアドレスからのリクエストでないと表示されなかったのですが、action_mailer.show_previews
にtrueが設定されている場合は、ローカルからのアクセス以外でもmailer previewが表示されるよう修正しています。
[ci skip] Remove useless "@api public/private"
activerecord/lib/active_record/reflection.rb
のdocの修正です。
各メソッドのdocから、不要な@api public
アノテーションを削除しています。
Merge pull request #21581 from ronakjangir47/restrict_with_error
activerecord/lib/active_record/associations/has_many_association.rb
、
activerecord/lib/active_record/associations/has_one_association.rb
の修正です。
restrict_with_error
のエラーメッセージを表示する際、I18nで指定された値で、クラス名が表示されるよう修正しています。
テストより。
I18n.backend.store_translations 'en', activerecord: {attributes: {restricted_with_error_firm: {companies: 'client companies'}}} firm = RestrictedWithErrorFirm.create!(name: 'restrict') firm.companies.create(name: 'child') firm.destroy "Cannot delete record because dependent client companies exist", firm.errors[:base].first
Merge pull request #21651 from shingo-nakanishi/fixed_docs
actionview/lib/action_view/helpers/form_helper.rb
のdocの修正です。
button
メソッドのexampleにタイポがあったのを修正しています。