2020/10/30分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Allow users to silence the "Rails couldn't infer whether you are using multiple databases..." message using
config.active_record.suppress_multiple_database_warning
. - Remove deprecated support for using unsafe raw SQL in
ActiveRecord::Relation
methods - Deprecate
ActiveRecord::Base.allow_unsafe_raw_sql
. - Remove deprecated
ActiveRecord::Result#to_hash
method where.not
now generates NAND predicates instead of NOR.- Remove deprecated methods from
ActiveRecord::DatabaseConfigurations
- Named scope chain does no longer leak scope to class level querying methods.
relation.create
does no longer leak scope to class level querying methods in initialization block and callbacks.- Remove deprecated
config.active_record.sqlite3.represent_boolean_as_integer
- Remove deprecated
migrations_path
argument inActiveRecord::ConnectionAdapter::SchemaStatements#assume_migrated_upto_version
- Remove deprecated
ActiveRecord::Base#update_attributes
andActiveRecord::Base#update_attributes!
- Remove deprecated
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#supports_ranges?
- Remove deprecated
ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?
- Remove deprecated
ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?
- Remove deprecated methods from
ActiveRecord::ConnectionAdapters::DatabaseLimits
- MySQL: Uniqueness validator now respects default database collation, no longer enforce case sensitive comparison by default.
- Optimise the length of index names for polymorphic references by using the reference name rather than the type and id column names.
- Remove deprecated
ActionDispatch::Http::ParameterFilter
- Change
ActionDispatch::Response#content_type
to return the full Content-Type header - Deprecate
config.action_dispatch.return_only_media_type_on_content_type
. - Add
config.action_dispatch.request_id_header
to allow changing the name of the unique X-Request-Id header
- Remove deprecated support to call private methods from object in some view helpers
- Remove deprecated pattern argument in
ActionView::Template::PathResolver
- Remove support to template handlers that don't accept two arguments
- Remove deprecated support to passing relative paths to
render file:
- Remove deprecated support to passing absolute paths to
render template:
- Remove deprecated
ActionView::Template.finalize_compiled_template_methods
- Remove deprecated
config.action_view.finalize_compiled_template_methods
- Make
locals
argument required onActionView::Template#initialize
- Remove deprecated
updated_at
argument required onActionView::Template#initialize
. - Remove deprecated
ActionView::Template#updated_at
. - Remove deprecated
ActionView::Template#virtual_path=
- Remove deprecated
ActionView::Template#formats
- Remove deprecated
ActionView::Template#variants
- Remove deprecated
ActionView::Template#original_encoding
- Remove deprecated
ActionView::Template#refresh
- Remove deprecated
format
argumentActionView::Base#initialize
- Remove deprecated support to pass an object that is not a
ActionView::LookupContext
as the first argument inActionView::Base#initialize
- Require that
ActionView::Base
subclasses implement#compiled_method_container
- Remove deprecated
find_file
fromActionView::ViewPaths
- Remove deprecated
rendered_format
fromActionView::LookupContext
- Remove deprecated
find_file
fromActionView::PathSet
- Remove deprecated
formats
fromActionView::Template::Text
- Remove deprecated
formats
fromActionView::Template::RawFile
- Remove deprecated
formats
fromActionView::Template::HTML
- Remove deprecated
find_all_anywhere
fromActionView::Resolver
- Remove deprecated
escape_whitelist
fromActionView::Template::Handlers::ERB
- ARIA Array and Hash attributes are treated as space separated
DOMTokenList
values. This is useful when declaring lists of label text identifiers inaria-labelledby
oraria-describedby
.
activejob/CHANGELOG.md
- Return
false
when enqueuing a job is aborted. - Deprecate
config.active_job.return_false_on_aborted_enqueue
.
activestorage/CHANGELOG.md
- Remove deprecated
ActiveStorage::Downloading
- Remove deprecated
config.active_storage.queue
- Remove deprecated ActiveStorage::Transformers::MiniMagickTransformer
- Remove deprecated support to pass
:combine_options
operations toActiveStorage::Transformers::ImageProcessing
- Remove deprecated fallback to
I18n.default_local
whenconfig.i18n.fallbacks
is empty - Remove deprecated
LoggerSilence
constant - Remove deprecated
ActiveSupport::LoggerThreadSafeLevel#after_initialize
- Remove deprecated
Module#parent_name
,Module#parent
and `Module#parents - Remove deprecated file
active_support/core_ext/module/reachable
- Remove deprecated file
active_support/core_ext/numeric/inquiry
- Remove deprecated file
active_support/core_ext/array/prepend_and_append
- Remove deprecated file
active_support/core_ext/hash/compact
- Remove deprecated file
active_support/core_ext/hash/transform_values
- Remove deprecated file
active_support/core_ext/range/include_range
- Remove deprecated
ActiveSupport::Multibyte::Chars#consumes?
andActiveSupport::Multibyte::Chars#normalize
- Remove deprecated methods in ActiveSupport::Multibyte::Unicode
- Deprecate
ActiveSupport::Multibyte::Unicode.default_normalization_form
- Remove deprecated
ActiveSupport::Notifications::Instrumenter#end=
- Remove deprecated
rake notes
tasks. - Remove deprecated
connection
option in therails dbconsole
command - Remove deprecated
SOURCE_ANNOTATION_DIRECTORIES
ENV - Remove deprecated
server
argument from the rails server command - Remove deprecated support for using the
HOST
environment variable to specify the server IP - Remove deprecated
rake dev:cache
tasks - Remove deprecated
rake routes
tasks - Remove deprecated
rake initializers
tasks
Improve use_sha1_digests deprecation message
activesupport/lib/active_support/railtie.rb
の修正です。
deprecatedになったconfig.active_support.use_sha1_digests
を使用している場合のdeprecateメッセージに、config.active_support.hash_digest_class
経由で`digestにSHA1を使う方法についての説明を含むよう修正しています。
Add documentation for granular connection switching
rails guideのMultiple Databases with Active Record
の修正です。
Merge pull request #40370 from eileencodes/granular-role-and-shard-swappingで追加された、abstract class毎にconnectionを切り替える方法についてのdocを追加しています。
Revert "Raise when calling render with invalid options"
render
に不正なオプションを指定した場合にexception(ArgumentError
)をraiseするよう修正した、Merge pull request #39497 from jhawthorn/render_with_invalid_optionsをRevertしています。breaking changeになってしまった(gemによっては、複数のformatをサポートする為に不正な引数を指定している事がある)為。
Add option to mute multiple database yaml warning
Active Recordの修正です。
multiple databases用taskを定義する為のdatabase yamlのパース処理に失敗した場合のメッセージ出力処理を、config(config.active_record.suppress_multiple_database_warning
)で抑止出来るよう修正しています。
Merge pull request #40368 from eugeneius/shard_test_transactions
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
、
activerecord/lib/active_record/test_fixtures.rb
の修正です。
テスト実行時に、shards用のtransactionをfixtureのsetup時点で開始するよう修正しています。
Implement connecting_to
method
activerecord/lib/active_record/connection_handling.rb
の修正です。
指定されたconnectionを使用する為のconnecting_to
メソッドを追加しています。
consoleをreadonly modeで起動する、のように、特定のconnectionが必ず使用されている状態にする為のメソッド、との事です。
Only replace existing pools in transactional tests
activerecord/lib/active_record/test_fixtures.rb
の修正です。
transactional testsでreading connection pools をwriting connection poolsに置き換える処理で、reading connectionが無い場合置き換え処理を行わないよう修正しています。
Merge pull request #39718 from jonathanhefner/listen-on-fork
activesupport/lib/active_support/evented_file_update_checker.rb
の修正です。
EventedFileUpdateChecker
での変更チェックがpidに依存していた(ファイルの変更処理で、pidが変わったらlistenの再チェックを行ってた)のを、forkが行われた場合、fork直後にlistenの再チェックを行うよう修正しています。
forkを行うgem(e.g. spring
)を使っている場合に変更検知が正しく行えるようにする為。
Merge pull request #39705 from Shopify/actioncontroller-testcase-parameters-fix
actionpack/lib/action_controller/test_case.rb
、
actionpack/lib/action_dispatch/routing/route_set.rb
の修正です。
ActionController::TestCase#process
でparameterのJSONへの変換処理が正しく行われないバグがあったのを修正しています。
Share connection pools for non-default shards
activerecord/lib/active_record/connection_adapters/legacy_pool_manager.rb
、
activerecord/lib/active_record/test_fixtures.rb
の修正です。
legacy_connection_handling
がtrueの場合、defaultのsharsのconnectionのみがshareされてしまうバグがあったのを修正しています。
Remove deprecated ActionDispatch::Http::ParameterFilter
Action Packの修正です。
deprecatedになっていたActionDispatch::Http::ParameterFilter
を削除しています。
Remove deprecated support to call private methods from object in some view helpers
actionview/lib/action_view/helpers/form_options_helper.rb
の修正です。
deprecatedになっていたview helperからprivateメソッドを呼び出せるようにする為の処理を削除しています。
Make type a required argument in ActionView::Template::HTML#initialize
actionview/lib/action_view/template/html.rb
の修正です。
ActionView::Template::HTML#initialize
のtype
引数を必須引数に修正しています。
Remove deprecated pattern argument in ActionView::Template::PathResolver
actionview/lib/action_view/template/resolver.rb
、
actionview/lib/action_view/testing/resolvers.rb
の修正です。
deprecatedになっていたActionView::Template::PathResolver
のpattern
引数を削除しています。
Remove support to template handlers that don't accept two arguments
actionview/lib/action_view/template.rb
、
actionview/lib/action_view/template/handlers.rb
の修正です。
deprecatedになっていたtemplate handlerに2つ未満の引数を指定した場合の処理を削除しています。
Remove deprecated support to passing relative paths to render file:
actionview/lib/action_view/renderer/template_renderer.rb
の修正です。
deprecatedになっていたrender
のfile
オプションに相対パスを指定した場合の処理を削除しています。
Remove deprecated support to passing absolute paths to render template:
actionview/lib/action_view/renderer/template_renderer.rb
の修正です。
deprecatedになっていたrender
のtemplate
オプションに絶対パスを指定した場合の処理を削除しています。
Remove deprecated support to calling ActionView::ViewPaths#with_fallback
with a block
actionview/lib/action_view/lookup_context.rb
の修正です。
deprecatedになっていたActionView::ViewPaths#with_fallback
にblockを指定した場合の処理を削除しています。
Remove deprecated finalize_compiled_template_methods
actionview/lib/action_view/railtie.rb
、
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template.finalize_compiled_template_methods
を削除しています。
Make locals
argument required on ActionView::Template#initialize
actionview/lib/action_view/template.rb
の修正です
ActionView::Template#initialize
のlocal
引数を必須引数に修正しています。
Remove deprecated ActionView::Template#updated_at
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#updated_at
を削除しています。
Remove deprecated ActionView::Template#virtual_path=
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#virtual_path=
を削除しています。
Remove deprecated ActionView::Template#formats
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#formats
を削除しています。
Remove deprecated ActionView::Template#variants
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#variants
を削除しています。
Remove deprecated ActionView::Template#original_encoding
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#original_encoding
を削除しています。
Remove deprecated ActionView::Template#refresh
actionview/lib/action_view/template.rb
の修正です。
deprecatedになっていたActionView::Template#refresh
を削除しています。
Remove deprecated format
argument ActionView::Base#initialize
actionview/lib/action_view/base.rb
の修正です。
deprecatedになっていたActionView::Base#initialize
のformats
引数を削除しています。
actionview/lib/action_view/base.rb
の修正です。
deprecatedになっていた、ActionView::Base#initialize
の最初の引数にActionView::LookupContext
のobject以外の値を指定した場合の処理を削除しています。
Make the arguments of ActionView::Base#initialize required
actionpack/lib/action_dispatch/middleware/debug_view.rb
、
actionview/lib/action_view/base.rb
の修正です。
ActionView::Base#initialize
の引数を全て必須引数に修正しています。
Require that ActionView::Base
subclasses implement #compiled_method_container
actionview/lib/action_view/base.rb
の修正です。
ActionView::Base
のサブクラスでcompiled_method_container
メソッドが実装されていない場合、エラーになるよう修正しています。
Remove deprecated find_file
from ActionView::ViewPaths
actionview/lib/action_view/lookup_context.rb
の修正です。
deprecatedになっていたActionView::ViewPaths
のfind_file
を削除しています。
Remove deprecated rendered_format
from ActionView::LookupContext
actionview/lib/action_view/lookup_context.rb
の修正です。
deprecatedになっていたActionView::LookupContext
のrendered_format
を削除しています。
Remove deprecated find_file
from ActionView::PathSet
actionview/lib/action_view/path_set.rb
の修正です。
deprecatedになっていたActionView::PathSet
のfind_file
を削除しています。
Remove deprecated formats
from ActionView::Template::Text
actionview/lib/action_view/template/text.rb
の修正です。
deprecatedになっていたActionView::Template::Text
のformats
を削除しています。
Remove deprecated formats
from ActionView::Template::RawFile
actionview/lib/action_view/template/raw_file.rb
の修正です。
deprecatedになっていたActionView::Template::RawFile
のformats
を削除しています。
Remove deprecated formats
from ActionView::Template::HTML
actionview/lib/action_view/template/html.rb
の修正です。
deprecatedになっていたActionView::Template::HTML
のformats
を削除しています。
Remove deprecated find_all_anywhere
from ActionView::Resolver
actionview/lib/action_view/template/resolver.rb
の修正です。
deprecatedになっていたActionView::Resolver
のfind_all_anywhere
を削除しています。
Remove deprecated escape_whitelist
from ActionView::Template::Handlers::ERB
actionview/lib/action_view/template/handlers/erb.rb
の修正です。
deprecatedになっていたActionView::Template::Handlers::ERB
のescape_whitelist
を削除しています。
Return false
when enqueuing a job is aborted
activejob/lib/active_job/callbacks.rb
、
activejob/lib/active_job/enqueuing.rb
の修正です。
enqueuing jobがabortした場合、false
を返すよう修正、及び、config.active_job.return_false_on_aborted_enqueue
configをdeprecateにしています。
Remove deprecated support for using unsafe raw SQL in ActiveRecord::Relation
methods
Active Recordの修正です。
deprecatedになっていたActiveRecord::Relation
のメソッドでunsafeなraw SQLを指定した場合のサポートを削除、及び、ActiveRecord::Base.allow_unsafe_raw_sql
をdeprecateにしています。
Remove deprecated ActiveRecord::Result#to_hash
method
activerecord/lib/active_record/result.rb
の修正です。
deprecatedになっていたActiveRecord::Result#to_hash
メソッドを削除しています。
where.not
now generates NAND predicates instead of NOR
activerecord/lib/active_record/relation/query_methods.rb
、
activerecord/lib/active_record/relation/where_clause.rb
の修正です。
where.not
で実行するSQLをNORからNANDに修正しています。
Remove deprecated methods from ActiveRecord::DatabaseConfigurations
activerecord/lib/active_record/database_configurations.rb
の修正です。
deprecatedになっていたActiveRecord::DatabaseConfigurations
のfetch
、each
、first
、values
、[]=
メソッドを削除しています。
Implicit scoping does no longer leak scope to class level querying methods
Active Recordの修正です。
named scopeをchainした際に、scopeをclass levelのメソッドにリークしないよう修正、及び、relation.create
の initialization block / callbackでscopeをclass levelのメソッドにリークしないよう修正しています。
Remove deprecated config.active_record.sqlite3.represent_boolean_as_integer
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
、
activerecord/lib/active_record/railtie.rb
の修正です。
deprecatedになていたconfig.active_record.sqlite3.represent_boolean_as_integer
を削除しています。
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
の修正です。
deprecatedになっていたActiveRecord::ConnectionAdapter::SchemaStatements#assume_migrated_upto_version
のmigrations_path
引数を削除しています。
Remove deprecated ActiveRecord::Base#update_attributes
and ActiveRecord::Base#update_attributes!
activerecord/lib/active_record/persistence.rb
の修正です。
deprecatedになっていたActiveRecord::Base#update_attributes
とActiveRecord::Base#update_attributes!
を削除しています。
Remove deprecated ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#supports_ranges?
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
の修正です。
deprecatedになっていたActiveRecord::ConnectionAdapters::PostgreSQLAdapter#supports_ranges?
を削除しています。
Remove deprecated ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
deprecatedになっていたActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?
を削除しています。
Remove deprecated ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
deprecatedになっていたActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?
を削除しています。
Remove deprecated methods from ActiveRecord::ConnectionAdapters::DatabaseLimits
activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb
の修正です。
deprecatedになっていたActiveRecord::ConnectionAdapters::DatabaseLimitsの
column_name_length、
table_name_length、
columns_per_table、
indexes_per_table、
columns_per_multicolumn_index、
sql_query_length、
joins_per_query`を削除しています。
Remove deprecated ActiveStorage::Downloading
deprecatedになっていたActiveStorage::Downloading
を削除しています。
Remove deprecated config.active_storage.queue
activestorage/lib/active_storage/engine.rb
の修正です。
deprecatedになっていたconfig.active_storage.queue
を削除しています。
MySQL: Uniqueness validator now respects default database collation
Active Recordの修正です。
uniqueness validatorで、強制的にcase sensitiveな比較を行っていたのを、行わないよう修正しています。
Remove deprecated ActiveStorage::Transformers::MiniMagickTransformer
Active Storageの修正です。
deprecatedになっていたActiveStorage::Transformers::MiniMagickTransformer
を削除しています。
Remove warning of undefined instance variable
activestorage/lib/active_storage/previewer/mupdf_previewer.rb
の修正です。
undefined instance variableのwarningが出ていたのを修正しています。
activestorage/lib/active_storage/transformers/image_processing_transformer.rb
の修正です。
deprecatedになっていたActiveStorage::Transformers::ImageProcessing
に:combine_options
operationを渡した場合の処理を削除しています。
Change ActionDispatch::Response#content_type
to return the full Content-Type header
Action Pack、railtiesの修正です。
ActionDispatch::Response#content_type
の戻り値をContent-Type headerの値をそのまま返すよう修正、及び、config.action_dispatch.return_only_media_type_on_content_type
configをdeprecateにしています。
Remove deprecated fallback to I18n.default_local
when config.i18n.fallbacks
is empty
activesupport/lib/active_support/i18n_railtie.rb
の修正です。
deprecatedになっていたconfig.i18n.fallbacks
が空だった場合の処理を削除しています。
Remove deprecated LoggerSilence
constant
activesupport/lib/active_support/logger_silence.rb
の修正です。
deprecatedになっていたLoggerSilence
を削除しています。
Remove deprecated ActiveSupport::LoggerThreadSafeLevel#after_initialize
activesupport/lib/active_support/logger_thread_safe_level.rb
の修正です。
deprecatedになっていたActiveSupport::LoggerThreadSafeLevel#after_initialize
を削除しています。
Remove deprecated Module#parent_name
, Module#parent
and `Module#parents
activesupport/lib/active_support/core_ext/module/introspection.rb
の修正です。
deprecatedになっていたModule#parent_name
、Module#parent
、Module#parents
を削除しています。
Remove deprecated file active_support/core_ext/module/reachable
deprecatedになっていたactive_support/core_ext/module/reachable
を削除しています。
Remove deprecated file active_support/core_ext/numeric/inquiry
deprecatedになっていたactive_support/core_ext/module/deprecation
を削除しています。
Remove deprecated file active_support/core_ext/array/prepend_and_append
deprecatedになっていたactive_support/core_ext/array/prepend_and_append
を削除しています。
Remove deprecated file active_support/core_ext/hash/compact
deprecatedになっていたactive_support/core_ext/hash/compact
を削除しています。
Remove deprecated file active_support/core_ext/hash/transform_values
deprecatedになっていたactive_support/core_ext/hash/transform_values
を削除しています。
Remove deprecated file active_support/core_ext/range/include_range
deprecatedになっていたactive_support/core_ext/range/include_range
を削除しています。
activesupport/lib/active_support/notifications/instrumenter.rb
の修正です。
deprecatedになっていたActiveSupport::Multibyte::Chars#consumes?
、ActiveSupport::Multibyte::Chars#normalize
を削除しています。
Remove deprecated methods in ActiveSupport::Multibyte::Unicode
activesupport/lib/active_support/multibyte/unicode.rb
の修正です。
deprecatedになっていたActiveSupport::Multibyte::Unicode.pack_graphemes
、ActiveSupport::Multibyte::Unicode.unpack_graphemes
、ActiveSupport::Multibyte::Unicode.normalize
、ActiveSupport::Multibyte::Unicode.downcase
、ActiveSupport::Multibyte::Unicode.upcase
、ActiveSupport::Multibyte::Unicode.swapcase
を削除しています。
Deprecate ActiveSupport::Multibyte::Unicode.default_normalization_form
activesupport/lib/active_support/multibyte/unicode.rb
の修正です。
ActiveSupport::Multibyte::Unicode.default_normalization_form
をdeprecateにしています。
Remove deprecated ActiveSupport::Notifications::Instrumenter#end=
activesupport/lib/active_support/notifications/instrumenter.rb
の修正です。
deprecatedになっていたActiveSupport::Notifications::Instrumenter#end=
を削除しています。
Remove depreated rake notes
tasks
railtiesの修正です。
deprecatedになっていたrake notes
taskを削除しています。
Remove deprecated connection
option in the rails dbconsole
command
railties/lib/rails/commands/dbconsole/dbconsole_command.rb
の修正です。
deprecatedになっていたrails dbconsole
のconnection
オプションを削除しています。
Remove deprecated SOURCE_ANNOTATION_DIRECTORIES
ENV
railties/lib/rails/commands/notes/notes_command.rb
の修正です。
deprecatedになっていたrails notes
のSOURCE_ANNOTATION_DIRECTORIES
envのサポートを削除しています。
Remove deprecated server
argument from the rails server command
railties/lib/rails/commands/server/server_command.rb
の修正です。
deprecatedになっていたrails server
のserver
オプションを削除しています。
Remove deprecated support for using the HOST
environment variable to specify the server IP
railties/lib/rails/commands/server/server_command.rb
の修正です。
deprecatedになっていたrails server
のHOST
environmentのサポートを削除しています。
Remove deprecated rake dev:cache
tasks
railtiesの修正です。
deprecatedになっていたrake dev:cache
taskを削除しています。
Remove deprecated rake routes
tasks
railtiesの修正です。
deprecatedになっていたrake routes
taskを削除しています。
Remove deprecated rake initializers
tasks
railtiesの修正です。
deprecatedになっていたrake initializers
taskを削除しています。
Remove deprecated required option on the model generators
railties/lib/rails/generators/generated_attribute.rb
の修正です。
deprecatedになっていたmodel generatorのrequired
オプションを削除しています。
railtiesの修正です。
各ファイルから使用していないrequire
を削除しています。
Customise the header name for ActionDispatch::RequestId
actionpack/lib/action_dispatch/middleware/request_id.rb
の修正です。
X-Request-Id headerのヘッダー名をconfig(config.action_dispatch.request_id_header
)で指定出来るよう修正しています。
Optimise length of default index name for polymorphic references
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
、
activerecord/lib/active_record/migration/compatibility.rb
の修正です。
polymorphic referencesで使用するindexにtype
とid
カラムを使用していたのをreference nameを使用するよう修正しています。type
とid
を使用するとindex名が長くなりすぎてしまう為。
Always ask for a header argument in ResquestId middleware
actionpack/lib/action_dispatch/middleware/request_id.rb
、
actionpack/lib/action_dispatch/railtie.rb
の修正です。
ActionDispatch::RequestId#initialize
のheader引数を必須引数に変更しています。
Merge pull request #39746 from jonathanhefner/springy-boot
railtiesの修正です。
Spring用のbinstubをSpring gem経由で生成していたのをやめて、Rails側で独自のbinstubを保持するよう修正、及び、そのbinstub内でGemfile.lock
にSpringが記載されている場合のみSpringのロード処理を行うよう修正しています。
Remove frozen_string_literal from generated file
railties/lib/rails/generators/rails/app/templates/config/boot.rb.tt
の修正です。
generated fileからfrozen_string_literal
を削除しています。
Merge pull request #40456 from kamipo/attribute_for_database
activerecord/lib/active_record/attribute_methods/before_type_cast.rb
の修正です。
attribute methodにattribute_for_database
メソッドを追加しています。名前の通りdatabase用のattributeを取得する為のメソッドで、enumの指定された値(実際に保存される値)を取得出来るようになっています。
Action Textの修正です。
Action Textの初期化処理がApplicationController
が定義されている事を前提とする処理になっていたのを、ApplicationController
無しで(内部で独自のrenderを作成して)処理が行えるよう修正しています。
Fix deprecation will be removed version s/Rails 6.1/Rails 6.2/
Rails 6.1で削除されなかったdeprecateメソッドで表示するdeprecationメッセージ内の、削除予定のRailsのバージョンをRails 6.2に修正しています。
Add author credit for #39599 [ci skip]
activerecord/CHANGELOG.md
の修正です。
Add a setting to specify that all string columns should be immutableの対応のCHANGELOGのcreditに実際に対応を行った方の名前を追加しています。
Add major features to the 6.1 release notes
rails guideのRuby on Rails 6.1 Release Notes
の修正です。
Rails 6.1のmajor featuresについての記載を追加しています。
Correct some entries section from Removals to Notable changes [ci skip]
rails guideのRuby on Rails 6.1 Release Notes
の修正です。
CHANGELOGエントリーの記載する箇所を間違えている箇所があったのを修正しています。
Merge pull request #39550 from vipulnsward/expiry-fix
activesupport/lib/active_support/messages/metadata.rb
の修正です。
ActiveSupport.use_standard_json_time_format
にfalseを指定している場合、metadataのexpiresのパース時にTime.iso8601
ではなくTime.parse
を使用するよう修正しています。
Revert "Add test to make sure this method will not be removed again"
ActiveModel::Attributes
内の使用していないメソッドを削除した、Remove unused internal methods in ActiveModel::AttributesをRevertした、Revert "Remove unused internal methods in ActiveModel::Attributes"をRevertしています。
元々Public APIではなかった、かつ、これらのメソッドを使用するユースケースは無いはず、との事で再度削除されています。
Serialize aria- namespaced list attributes
actionview/lib/action_view/helpers/tag_helper.rb
の修正です。
ARIA Array / Hash attributesをspace区切りの値として扱うよう修正しています。
tag.input type: 'checkbox', name: 'published', aria: { invalid: @post.errors[:published].any?, labelledby: ['published_context', 'published_label'], describedby: { published_errors: @post.errors[:published].any? } } #=> <input type="checkbox" name="published" aria-invalid="true" aria-labelledby="published_context published_label" aria-describedby="published_errors">
actionpack/test/dispatch/request_id_test.rb
の修正です。
stub_request
への引数の指定方法に誤りがあったのを修正しています。
Add more tests for find_signed/!
methods
activerecord/test/cases/signed_id_test.rb
の修正です。
find_signed(!)
メソッドについて、primary keyをcustomしている場合、STIを使用している場合、等のテストを追加しています。
Merge pull request #40448 from BKSpurgeon/fix-timezone-rounding-bug
activesupport/lib/active_support/core_ext/time/calculations.rb
の修正です。
ActiveSupport::TimeWithZone
のオブジェクトに対してTime.at
を実行した場合に、正しい結果が取得出来ないバグ(precisionの取得方法に誤りがあった)があったのを修正しています。
Fixup test for TimeWithZone Time.at precision
activesupport/test/core_ext/time_with_zone_test.rb
の修正です。
ActiveSupport::TimeWithZone
のオブジェクトに対してTime.at
を実行した場合のテストについて、でテスト名を正しい名前に修正、不要なコードの削除等をおこなっています。
Add docs and guards to while_preventing_writes
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
、
activerecord/lib/active_record/connection_handling.rb
の修正です。
while_preventing_writes
メソッドにdocを追加、及び、サポートしていない状態でwhile_preventing_writes
メソッドを実行された場合にexceptionをraiseするよう修正しています。