2022/05/31分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #45211 from yykamei/patch-1
activerecord/lib/active_record/associations/collection_proxy.rb
のdocの修正です。
third_to_last
、second_to_last
のdoc内の取得されるデータについての説明に誤りがあったのを修正しています。
Guides > Upgrading: Mention config.hosts
on Rails 6.0
rails guideのUpgrading Ruby on Rails
の修正です。
Rails 6.0のUpgrading guideにconfig.hosts
についての説明を追加しています。
Add validity for PostgreSQL indexes
Active Recordの修正です。
PostgreSQLのindexに、valid
かどうかのattributeを追加しています。
connection.index_exists?(:users, :email, valid: true) connection.indexes(:users).select(&:valid?)
Merge pull request #45219 from fatkodima/delegate-empty-to-all
activerecord/lib/active_record/querying.rb
の修正です。
modelからRelationにdelegateするメソッドの一覧にempty?
を追加しています。
Fix hstore deserialize regression
activerecord/lib/active_record/connection_adapters/postgresql/oid/hstore.rb
の修正です。
Rails 7.0で、'"\\"=>"\\"'
のような本来HStoreとして正常な値が、deserialize処理で不正な値と見なされてしまうリグレッションが発生していたのを修正しています。
Merge pull request #44896 from philip-maina/add-schema-awareness-to-postgres-enum-creation
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
の修正です。
PostgreSQLのcreate_enum
で、enum
のチェックをする際に、現在使用しているschema
の値をconditionに追加するよう修正しています。
Strings returned from strip_tags
are correctly tagged html_safe?
actionview/lib/action_view/helpers/sanitize_helper.rb
の修正です。
strip_tags
メソッドが返す値にhtml_safe
のフラグを追加するよう修正しています。strip_tags
はHTMLタグのエスケープ処理を行っており、HTML safeな値になっている為。
Fix code example error in Store dirty tracking
activerecord/lib/active_record/store.rb
のdocの修正です。
ActiveRecord::Store
のdoc内のexampleコードの結果が、実際の結果と異なっていたのを修正しています。