2015/10/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Deprecate
config.static_cache_control
in favor ofconfig.public_file_server.headers
- Add the ability of returning arbitrary headers to ActionDispatch::Stati
Only prepend a single module when defining deprecation wrappers.
activesupport/lib/active_support/deprecation/method_wrappers.rb
の修正です。
ActiveSupport::Deprecation.deprecate_method
メソッドで、deprecation表示処理を追加したメソッドを生成する際、deprecatedなメソッド数分Module
クラスのオブジェクトを生成していたのを、オブジェクトはひとつだけ生成し、そのオブジェクトを使いまわすよう修正しています。
Merge pull request #19135 from yuki24/access-control-support
Action Pack、railtiesの修正です。
ActionDispatch::Static
に任意のHTTP headersを指定出来るよう対応されています。値は、config.public_file_server.headers
で設定可能です。
config.public_file_server.headers = { "Cache-Control" => "public, max-age=60", "Access-Control-Allow-Origin" => "http://rubyonrails.org" }
これにより、config.static_cache_control
がdeprecateになりました。今後は、先の例のように、config.public_file_server.headers
を使用する必要があります。
Fix formatting of ActiveRecord PostgreSQL guide.
rails guideのActive Record and PostgreSQL
の修正です。
Enumerated Types
の項、改行が足りて無くてフォーマットが崩れてしまっていた箇所があったのを修正しています。
Merge pull request #20908 from y-yagi/generate_application_job_inside_engine
rails/generators/rails/plugin/templates/app/jobs/%namespaced_name%/application_job.rb.tt
の修正です。
mountable engine生成時に、ApplicationJob
クラスを生成するよう対応しています。
Add explicit base class for ActiveJob jobs でRailsアプリ側では、アプリ生成時にApplicationJob
クラス用ファイルを生成するようになっており、同じ対応をmountable engineに行っていまs.
Merge pull request #21635 from sideshowcoder/ar_type_docs_fix
activerecord/lib/active_record/attributes.rb
のdocの修正です。
ActiveRecord::Type::Integer
を使用した場合のexampleに、numericチェックを追加しています。
add missing :nodoc: to ActiveRecord::Scoping
. [ci skip]
activerecord/lib/active_record/scoping.rb
のdocの修正です。
Rails 内部でのみ使用する想定のメソッドに:nodoc:
を設定しています。
fix RDoc list markup in DatabaseTasks
. [ci skip]
activerecord/lib/active_record/tasks/database_tasks.rb
のdocの修正です。
DatabaseTasks
のconfigに指定出来る値のリストのフォーマットが、先頭に不要なスペースがある為に崩れてしまっていたので、スペースを削除しています。
fix broken RDoc markup. Use <tt>
instead of +
. [ci skip]
activerecord/lib/active_record/associations/collection_proxy.rb
、
activerecord/lib/active_record/type.rb
のdocの修正です。
等幅フォントの表示に+
を使っていた箇所を、<tt>
を使用するよう修正しています。
単語であれば+
で問題無いが、文(途中にスペースが入る)だと<tt>
じゃないと駄目なんですね。
add missing :nodoc:
for AutosaveAssociation::ClassMethods
[ci skip]
activerecord/lib/active_record/autosave_association.rb
のdocの修正です。
AutosaveAssociation::ClassMethods
に:nodoc:
を設定しています。
add missing :nodoc:
to AR::Callbacks::ClassMethods
. [ci skip]
activerecord/lib/active_record/callbacks.rb
のdocの修正です。
ActiveRecord::Callbacks::ClassMethods
に:nodoc:
を設定しています。