{"id":28987,"date":"2023-12-13T09:00:29","date_gmt":"2023-12-13T00:00:29","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=28987"},"modified":"2023-12-11T08:13:49","modified_gmt":"2023-12-10T23:13:49","slug":"rails7-1%e3%81%aenew_framework_defaults%e3%82%92%e3%82%86%e3%82%8b%ef%bd%9e%e3%81%8f%e7%a2%ba%e8%aa%8d%e3%80%90agent-grow-advent-calendar-2023%ef%bc%9a13%e6%97%a5%e7%9b%ae%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2023\/12\/13\/rails7-1%e3%81%aenew_framework_defaults%e3%82%92%e3%82%86%e3%82%8b%ef%bd%9e%e3%81%8f%e7%a2%ba%e8%aa%8d%e3%80%90agent-grow-advent-calendar-2023%ef%bc%9a13%e6%97%a5%e7%9b%ae%e3%80%91\/","title":{"rendered":"Rails7.1\u306enew_framework_defaults\u3092\u3086\u308b\uff5e\u304f\u78ba\u8a8d\u3010Agent Grow Advent Calendar 2023\uff1a13\u65e5\u76ee\u3011"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001Kasano\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306fAgent Grow Advent Calendar 2023 13\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/qiita.com\/asip2k25\/items\/729d3426c1efa802f336\">\u4e00\u90e8\u3067\u30aa\u30ef\u30b3\u30f3\u547c\u3070\u308f\u308a\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308b<\/a>Ruby on Rails\u3084Ruby\u3067\u3059\u304c\u5168\u7136\u305d\u3093\u306a\u3053\u3068\u306a\u3055\u305d\u3046\u306a\u96f0\u56f2\u6c17\u3092\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306aRails\u3067\u3059\u304c\u4eca\u5e7410\u6708\u306bRails7.1\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u4ed5\u4e8b\u3067Rails\u3092\u4f7f\u3063\u3066\u3044\u308b\u4ee5\u4e0a\u306f\u3069\u3046\u3057\u3066\u3082\u65b0\u3057\u3044\u30e1\u30b8\u30e3\u30fc\u30fb\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u5ea6\u306b <strong>new_framework_defaults_*_*.rb<\/strong> \u30d5\u30a1\u30a4\u30eb\u306e\u9805\u76ee\u30921\u30641\u3064\u78ba\u8a8d\u3059\u308b\u4f5c\u696d\u306b\u8ffd\u308f\u308c\u308b\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u304cgg\u3063\u3066\u63a2\u3057\u307e\u3059\u3088\u306d\u3002<\/p>\n<p><a href=\"https:\/\/qiita.com\/SoarTec-lab\/items\/10280dbea1195bf21b3c\" target=\"_blank\" rel=\"noopener\">rails6.1\u3067\u52a0\u308f\u3063\u305f\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3067\u3042\u308bnew_framework_defaults_6_1.rb\u306e\u5404\u9805\u76ee\u3092\u3055\u3089\u3063\u3068\u89e3\u8aac<\/a><\/p>\n<p>\u4e0a\u8a18\u306f6.1\u3067\u3059\u304c\u30017.1\u7248\u306e\u65e5\u672c\u8a9e\u8a18\u4e8b\u304c\u610f\u5916\u3068\u5c11\u306a\u304b\u3063\u305f\u3067\u3059\u3002<br \/>\n\u300c\u306a\u3089\u3070\u81ea\u5206\u304c\uff01\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3086\u308b\u308a\u3068\u898b\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff087.1\u304b\u3089\u306e\u8a2d\u5b9a\u304c\u591a\u3059\u304e\u308b\u306e\u3067\u6df1\u8ffd\u3044\u3067\u304d\u3066\u306a\u3044\u8a2d\u5b9a\u3082\u591a\u3044\u3067\u3059\u304c\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u306a\u304a\u3001new_framework_defaults\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u8aac\u660e\u3057\u307e\u305b\u3093\u3002\uff08<a href=\"https:\/\/moneyforward-dev.jp\/entry\/2022\/05\/18\/new_framework_defaults-for-rails\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30de\u30cd\u30fc\u30d5\u30a9\u30ef\u30fc\u30c9\u3055\u3093\u306e\u8a18\u4e8b<\/a>\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u53c2\u8003\u306b\u306a\u3055\u3063\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<h1>new_framework_defaults_7.1.rb\u306b\u8a18\u8f09\u306e\u3042\u308b\u8a2d\u5b9a<\/h1>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee\u540d<\/th>\n<th>\u89e3\u8aac<\/th>\n<\/tr>\n<tr>\n<th>add_autoload_paths_to_load_path = false<\/th>\n<td>$LOAD_PATH\u306bautoload_path\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002<br \/>\n\u3082\u3068\u3082\u3068zeitwerk\uff08Rails\u3067\u81ea\u52d5\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u308c\u308b\u3084\u3064\uff09\u304c\u51fa\u3066\u304d\u3066\u304b\u3089\u306ffalse\u306b\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u305f\u3002(<a href=\"https:\/\/railsguides.jp\/autoloading_and_reloading_constants.html#%24load-path-load-path\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003<\/a>)<\/td>\n<\/tr>\n<tr>\n<th>action_dispatch.default_headers = {<br \/>\n&#8220;X-Frame-Options&#8221; =&gt; &#8220;SAMEORIGIN&#8221;,<br \/>\n&#8220;X-XSS-Protection&#8221; =&gt; &#8220;0&#8221;,<br \/>\n&#8220;X-Content-Type-Options&#8221; =&gt; &#8220;nosniff&#8221;,<br \/>\n&#8220;X-Permitted-Cross-Domain-Policies&#8221; =&gt; &#8220;none&#8221;,<br \/>\n&#8220;Referrer-Policy&#8221; =&gt; &#8220;strict-origin-when-cross-origin&#8221;<br \/>\n}<\/th>\n<td>\u5f93\u6765\u306edefault_headers\u304b\u3089\u3001 Internet Explorer\u3067\u3057\u304b\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044 X-Download-Options \u30d8\u30c3\u30c0\u30fc\u304c\u524a\u9664\u3055\u308c\u305f\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3053\u306e\u30d8\u30c3\u30c0\u30fc\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30d6\u30e9\u30a6\u30b6\u306e\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002\uff08<a href=\"https:\/\/qiita.com\/fukushi_yoshikazu\/items\/1a746fc8c8663be18bf9#x-download-options%E3%83%98%E3%83%83%E3%83%80\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003<\/a>\uff09<\/td>\n<\/tr>\n<tr>\n<th>action_controller.allow_deprecated_parameters_hash_equality = false<\/th>\n<td>ActionController::Parameters#== \u306bHash\u306e\u5f15\u6570\u3092\u6e21\u3057\u305f\u3068\u304d\u306bWARNING\u304c\u51fa\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002\u4eca\u5f8c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306ffalse\u306a\u306e\u3067WARNING\u304c\u51fa\u306a\u304f\u306a\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA256<\/th>\n<td>Active Record Encryption\u3067\u5229\u7528\u3059\u308b\u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u7528\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u8a2d\u5b9a\u3002<br \/>\n\u5f93\u6765\u306fSHA1\u3060\u3063\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_redord.run_commit_callbacks_on_first_saved_instances_in_transaction = false<\/th>\n<td>transactional\u5185\u3067\u540c\u3058\u30ec\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u5909\u66f4\u51e6\u7406\u3092\u8907\u6570\u56de\u5b9f\u884c\u3057\u305f\u5834\u5408\u306b\u3001callback(after_commit\u30fbafter_rollback)\u306b\u306f\u6700\u521d\u306b\u66f4\u65b0\u3057\u305f\u5834\u5408\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u6e21\u3063\u3066\u3044\u305f\u304c\u3001false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u6700\u65b0\u306e\u72b6\u614b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6e21\u3059\u3088\u3046\u306b\u306a\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.sqlite3_adapter_strict_strings_by_default = true<\/th>\n<td>SQLite3Adapter\u3092&#8221;strict strings&#8221;\u30e2\u30fc\u30c9\u3067\u5229\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a<\/td>\n<\/tr>\n<tr>\n<th>active_record.allow_deprecated_singular_associations_name = false<\/th>\n<td>\u3053\u306e\u8a2d\u5b9a\u3092true\u306b\u3059\u308b\u3068\u3001\u5358\u6570\u5f62\u306e\u95a2\u9023\u4ed8\u3051\u540d\u3092where\u3067\u8907\u6570\u5f62\u306e\u540d\u524d\u3067\u53c2\u7167\u3057\u3066\u3082\u975e\u63a8\u5968\u8b66\u544a\u3092\u8868\u793a\u3057\u306a\u304f\u306a\u308b\u3002<br \/>\n\u3053\u306e\u8a2d\u5b9a\u3092false\u306b\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3059\u308b\u3068\u306e\u3053\u3068\u306a\u306e\u3067false\u63a8\u5968\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_job.use_big_decimal_serializer = true<\/th>\n<td>\u30b8\u30e7\u30d6\u306e\u5f15\u6570\u306bBigDecimal\u3092\u6e21\u3059\u5834\u5408\u306b\u3001\u30e9\u30a6\u30f3\u30c9\u30c8\u30ea\u30c3\u30d7\uff08\u5143\u306b\u623b\u308b\u3053\u3068\uff09\u3092\u4fdd\u8a3c\u3059\u308bBigDecimal\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002\u3053\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u3001\u4e00\u90e8\u306e\u30ad\u30e5\u30fc\u30a2\u30c0\u30d7\u30bf\u304cBigDecimal\u5f15\u6570\u3092\u30e9\u30a6\u30f3\u30c9\u30c8\u30ea\u30c3\u30d7\u4e0d\u53ef\u80fd\u306a\u6587\u5b57\u5217\u3068\u3057\u3066\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_support.raise_on_invalid_cache_expiration_time = true<\/th>\n<td>Rails.cache\u306efetch\u307e\u305f\u306fwrite\u306b\u3001\u7121\u52b9\u306aexpires_at\u307e\u305f\u306f expires_in\u6642\u523b\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u3001ArgumentError\u3092\u767a\u751f\u3055\u305b\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.query_log_tags_format = :sqlcommenter<\/th>\n<td>QueryLogs\u306e\u30bf\u30b0\u306b\u4f7f\u3046\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u306e\u8a2d\u5b9a\u3002\u6709\u52b9\u306a\u5024\u306f:sqlcommenter \u307e\u305f\u306f :legacy \u306e\u3069\u3061\u3089\u304b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_support.message_serializer = :json_allow_marshal<\/th>\n<td>ActiveSupport::MessageEncryptor\u304a\u3088\u3073ActiveSupport::MessageVerifier\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u5229\u7528\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u306e\u8a2d\u5b9a\u3002<br \/>\n\u3061\u306a\u307f\u306bRails7.1\u304b\u3089\u306f<a href=\"https:\/\/github.com\/msgpack\/msgpack-ruby\" target=\"_blank\" rel=\"noopener\">msgpack gem<\/a>\u3092\u4f7f\u7528\u3057\u305f<a href=\"https:\/\/github.com\/rails\/rails\/pull\/47770\" target=\"_blank\" rel=\"noopener\">ActiveSupport::MessagePack\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a<\/a>\u3001\u3053\u3061\u3089\u306f\u3088\u308a\u9ad8\u901f\u304b\u3064\u30c7\u30fc\u30bf\u304c\u8efd\u91cf\u306b\u306a\u308b\u3089\u3057\u3044\u3002\uff08\u304c\u3001\u305d\u306e\u305f\u3081\u306bgem\u8ffd\u52a0\u304c\u5fc5\u8981\uff09<\/td>\n<\/tr>\n<tr>\n<th>active_support.use_message_serializer_for_metadata = true<\/th>\n<td>\u30e1\u30c3\u30bb\u30fc\u30b8\u30c7\u30fc\u30bf\u3068\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u4e00\u7dd2\u306b\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3068\u304d\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3092\u6709\u52b9\u306b\u3059\u308b\u8a2d\u5b9a\u3002\u3053\u308c\u306b\u3088\u308a\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u306e\u65b9\u6cd5\u3067\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30e2\u30c7\u30eb\u306f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eRails\uff08&lt; 7.1\uff09\u3067\u306f\u8aad\u307f\u8fbc\u3081\u306a\u304f\u306a\u308b\u306e\u3067\u30ed\u30fc\u30ea\u30f3\u30b0\u30c7\u30d7\u30ed\u30a4\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u6b21\u56de\u30c7\u30d7\u30ed\u30a4\u6642\u306b\u6709\u52b9\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>if Rails.env.local?<br \/>\nRails.application.config.log_file_size = 100 * 1024 * 1024<br \/>\nend<\/th>\n<td>develpment or test\u74b0\u5883\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5927\u30b5\u30a4\u30ba\u306e\u8a2d\u5b9a\u3002<br \/>\n\u3061\u306a\u307f\u306bRails.env.local?\u306frails7.1\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u3082\u306e\u3067development or test \u306e\u3068\u304d\u306btrue\u3068\u306a\u308b\u3002\uff08<a href=\"https:\/\/techracho.bpsinc.jp\/hachi8833\/2023_07_26\/132429\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003<\/a>\uff09<\/td>\n<\/tr>\n<tr>\n<th>active_record.raise_on_assign_to_attr_readonly = true<\/th>\n<td>attr_readonly\u5c5e\u6027\u3078\u306e\u4ee3\u5165\u6642\u306braise\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002<br \/>\n\u3061\u306a\u307f\u306b\u5f93\u6765\u306e\u52d5\u4f5c\u306f\u3001\u4ee3\u5165\u3057\u3066\u3082\u7279\u306b\u4f55\u306e\u4f8b\u5916\u3082raise\u3055\u308c\u306a\u304b\u3063\u305f\u304c\u5909\u66f4\u304cDB\u306b\u66f8\u304d\u8fbc\u307e\u308c\u306a\u304b\u3063\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.belongs_to_required_validates_foreign_key = false<\/th>\n<td>false\u306b\u3059\u308b\u3068\u3001\u89aa\u304c\u5fc5\u9808\u3067\u3042\u308b\u5834\u5408\u306b\u3001\u89aa\u306b\u95a2\u9023\u3059\u308b\u30ab\u30e9\u30e0\u306b\u3064\u3044\u3066\u306e\u307f\u5b58\u5728\u3092\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p>\u3053\u308c\u306fTechRacho\u3055\u3093\u306e\u8aac\u660e\u304c\u3081\u3061\u3083\u304f\u3061\u3083\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u2192\uff08<a href=\"https:\/\/techracho.bpsinc.jp\/hachi8833\/2023_02_20\/126518#10\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003<\/a>\uff09<\/td>\n<\/tr>\n<tr>\n<th>precompile_filter_parameters = true<\/th>\n<td>ActiveSupport::ParameterFilter.precompile_filters\u3092\u5229\u7528\u3059\u308bconfig.filter_parameters\u306e\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u8a2d\u5b9a\u3002<br \/>\n\u30d5\u30a3\u30eb\u30bf\u306e\u500b\u6570\u3084\u7a2e\u985e\u306b\u3082\u3088\u308b\u304c\u3001\u30d5\u30a3\u30eb\u30bf\u3092\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.before_committed_on_all_records = true<\/th>\n<td>before_committed!\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5b9f\u884c\u306b\u3064\u3044\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u767b\u9332\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30ec\u30b3\u30fc\u30c9\u3067\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002<br \/>\n\u3061\u306a\u307f\u306b\u5f93\u6765\uff08false\u6642\uff09\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u540c\u3058\u30ec\u30b3\u30fc\u30c9\u306e\u30b3\u30d4\u30fc\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306b\u3001\u30ec\u30b3\u30fc\u30c9\u306e\u6700\u521d\u306e\u30b3\u30d4\u30fc\u306b\u5bfe\u3057\u3066\u306e\u307f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.default_column_serializer = nil<\/th>\n<td>\u30ab\u30e9\u30e0\u3067\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u304c\u660e\u793a\u7684\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u4f7f\u3046\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u306e\u8a2d\u5b9a\u3002<br \/>\n<a href=\"https:\/\/github.com\/rails\/rails\/pull\/47422#issuecomment-1443115060\" target=\"_blank\" rel=\"noopener\">Rails\u306e\u8a72\u5f53\u306eissue<\/a>\u306b\u3042\u308b\u901a\u308a\u3001<\/p>\n<p>YAML\uff08\u5f93\u6765\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\uff09\u2192 \u4efb\u610f\u306e\u30c7\u30fc\u30bf\u3092\u30b7\u30ea\u30a2\u30eb\u5316\u3059\u308b\u306b\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u52b9\u7387\u3060\u3051\u3067\u306a\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u70b9\u3067\u3082\u591a\u304f\u306e\u554f\u984c\u304c\u3042\u308b<br \/>\njson \u2192\u3000Ruby \u3067\u5229\u7528\u3067\u304d\u308b\u30d1\u30fc\u30b5\u30fc\u306b\u306f\u4e0d\u5b89\u5b9a\u306a\u52d5\u4f5c\u304c\u3042\u308b\u305f\u3081\u3001\u9069\u5207\u3067\u306f\u306a\u3055\u305d\u3046<\/p>\n<p>\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u306e\u5019\u88dc\u304c\u3069\u3061\u3089\u3082\u5fae\u5999\u3002<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30b7\u30ea\u30a2\u30eb\u5316\u3059\u308b\u3053\u3068\u306f\u5927\u304d\u306a\u7d50\u679c\u3092\u4f34\u3046\u6c7a\u5b9a\u3067\u3042\u308b\u305f\u3081\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u81ea\u5206\u3067\u305d\u306e\u9078\u629e\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u306e\u306f\u826f\u3044\u3053\u3068\u3060\u304b\u3089\u5f53\u9762\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u7121\u3057\u3067\u3088\u3044\u3060\u308d\u3046\u3001\u3068\u3044\u3046\u8a71\u306b\u307e\u3068\u307e\u3063\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.marshalling_format_version = 7.1<\/th>\n<td>7.1\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001Active Record\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092Marshal.dump\u3067\u3088\u308a\u52b9\u7387\u7684\u306b\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u53ef\u80fd\u306b\u306a\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u5f62\u5f0f\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u306e\u65b9\u6cd5\u3067\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30e2\u30c7\u30eb\u306f\u5f93\u6765\u306eRails\uff08&lt; 7.1\uff09\u3067\u306f\u8aad\u307f\u8fbc\u3081\u306a\u304f\u306a\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.run_after_transaction_callbacks_in_order_defined = true<\/th>\n<td>true\u306b\u3059\u308b\u3068after_commit\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u30e2\u30c7\u30eb\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u9806\u306b\u5b9f\u884c\u3055\u308c\u308b\u3002\u5f93\u6765\u306efalse\u306e\u5834\u5408\u306f\u9006\u9806\u306b\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\n\u305d\u306e\u4ed6\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u3001prepend :true \u3092\u4f7f\u308f\u306a\u3044\u9650\u308a\u306f\u3001\u5e38\u306b\u30e2\u30c7\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u9806\u5e8f\u3067\u5b9f\u884c\u3055\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.commit_transaction_on_non_local_return = true<\/th>\n<td>return\u30fbbreak\u30fbthrow\u304ctransaction\u30d6\u30ed\u30c3\u30af\u5185\u3067\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u304b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u308b\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u3002<br \/>\nfalse\u306e\u5834\u5408\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3001true\u306e\u5834\u5408\u306f\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_record.generate_secure_token_on = :initialize<\/th>\n<td>\u30e2\u30c7\u30eb\u306ehas_secure_token\u5ba3\u8a00\u306e\u5024\u304c\u751f\u6210\u3055\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u5236\u5fa1\u3059\u308b\u8a2d\u5b9a\u3002<br \/>\n:initialize\u3067\u306f\u30e2\u30c7\u30eb\u304c\u521d\u671f\u5316\u3055\u308c\u305f\u3068\u304d\u306b\u5024\u304c\u751f\u6210\u3055\u308c\u308b\u3002\u5f93\u6765\u306f:create\u3067\u30e2\u30c7\u30eb\u4f5c\u6210\u6642\u306b\u5024\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<th>active_support.cache_format_version = 7.1<\/th>\n<td>Rails.cache\u304c\u6271\u3046\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u8a2d\u5b9a\u3002<br \/>\n<a href=\"https:\/\/railsguides.jp\/configuring.html#config-active-support-cache-format-version\">Rails\u30ac\u30a4\u30c9<\/a> \u3060\u3068\u300c\u3069\u306e\u5f62\u5f0f\u3082\u524d\u65b9\u4e92\u63db\u6027\u3068\u5f8c\u65b9\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u300d\u3068\u3042\u308b\u304c\u3001new_framework_defaults_7_1.rb \u306b\u306f<br \/>\n\u300cChanging this default means that all new cache entries added to the cache<br \/>\nwill have a different format that is not supported by Rails 7.0 applications.\u300d<br \/>\n\u3068\u4e92\u63db\u6027\u304c\u7121\u3044\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308a\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<th>action_view.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor<\/th>\n<td>Action View\u3067\u5229\u7528\u3055\u308c\u308bHTML\u30b5\u30cb\u30bf\u30a4\u30b6\u306e\u8a2d\u5b9a<\/td>\n<\/tr>\n<tr>\n<th>action_text.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor<\/th>\n<td>Action Text\u3067\u5229\u7528\u3055\u308c\u308bHTML\u30b5\u30cb\u30bf\u30a4\u30b6\u306e\u8a2d\u5b9a<\/td>\n<\/tr>\n<tr>\n<th>action_dispatch.debug_exception_log_level = :error<\/th>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u4e2d\u306b\u30ad\u30e3\u30c3\u30c1\u3055\u308c\u306a\u3044\u4f8b\u5916\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\u969b\u306b\u3001ActionDispatch::DebugExceptions\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3067\u4f7f\u3046\u30ed\u30b0\u30ec\u30d9\u30eb\u306e\u8a2d\u5b9a\u3002\u5f93\u6765\u306f:fatal\u3060\u3063\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<th>dom_testing_default_html_version = :html5<\/th>\n<td>Action View\u3001Action Dispatch\u3001rails-dom-testing\u306e\u30c6\u30b9\u30c8\u30d8\u30eb\u30d1\u30fc\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u3046HTML\u30d1\u30fc\u30b5\u30fc\u3092\u3001HTML4\u30d1\u30fc\u30b5\u30fc\u306b\u3059\u308b\u304bHTML5\u30d1\u30fc\u30b5\u30fc\u306b\u3059\u308b\u304b\u306e\u8a2d\u5b9a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u306f\u4f8b\u3048\u3070ActionText\u306a\u3093\u3066\u4f7f\u3063\u3066\u306a\u3044\u3088\uff01\u3068\u304b\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u95a2\u4fc2\u306a\u3044\u8a2d\u5b9a\u3082\u591a\u3005\u3042\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306b\u3057\u3066\u3082\u3044\u3064\u3082\u3088\u308a\u8a2d\u5b9a\u306e\u6570\u304c\u591a\u304b\u3063\u305f\u3067\u3059\u306d\u3002<\/p>\n<p>\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u9805\u76ee\u304c\u3042\u308c\u3070 <a href=\"https:\/\/railsguides.jp\/configuring.html#%E3%82%BF%E3%83%BC%E3%82%B2%E3%83%83%E3%83%88%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B37-1%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E5%80%A4\" target=\"_blank\" rel=\"noopener\">Rails\u516c\u5f0f\u306e\u8a2d\u5b9a\u9805\u76ee\u306e\u7d39\u4ecb\u30da\u30fc\u30b8<\/a><br \/>\n\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff08\u3068\u3044\u3063\u3066\u3082\u305d\u3093\u306a\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u308c\u3066\u306a\u3044\u8a2d\u5b9a\u3082\u591a\u3044\u3067\u3059\u304corz\uff09\u2606<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\u3001Kasano\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306fAgent Grow Advent Calendar 2023 13\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u4e00\u90e8\u3067\u30aa\u30ef\u30b3\u30f3\u547c\u3070\u308f\u308a\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308bRuby on Rails\u3084Ruby\u3067\u3059\u304c\u5168\u7136 [&hellip;]<\/p>\n","protected":false},"author":68,"featured_media":24239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[835,10],"tags":[858,823,824],"class_list":["post-28987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-835","category-tech","tag-agent-grow-advent-calendar-2023","tag-ruby","tag-ruby-on-rails"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2021\/12\/gems-g6557f833b_640.png","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-7xx","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/28987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=28987"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/28987\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/24239"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=28987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=28987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=28987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}