Rails 8.1.2 released
Rails 8.1.2 has officially launched, packing in a collection of upgrades along with bug fixes for different parts of the framework.
Active Support saw some focused development. The delegate and delegate_missing_to methods now handle subclasses of BasicObject correctly; this was previously an issue that could cause unexpected behavior when using these features. Inflector work with locales also received attention; there's now proper handling for fallbacks to English, fixing problems related to specific character sets in the past.
Elsewhere within Active Support, you'll observe as_json always returns UTF-8 strings going forward. That means it won't slip back into US-ASCII encoding unexpectedly, which can sometimes trip up things. There were also adjustments to TimeWithZone#xmlschema for DateTime instances set locally and a new LocalCache strategy for the MemoryStore implementation.
Active Record picked up its own important fixes, including an update to how cached query counts are managed in the RuntimeRegistry, which has been fixed after a long time. Also, merging relations involving Arel equality predicates or null ones was smoothed out, alongside proper handling of SQLite3 schema dumps for non-autoincrement integer primary keys.
PostgreSQL users will be pleased with two fixes: one ensures the schema_search_path is properly reset and reapplied, while another restores support for using floats with enums. Plus, there are enhancements to how preloading associations works, especially those involving subclass relationships.
Over in Action View, the file_field method now correctly joins MIME types with commas even if they're passed as an array; that was previously a potential issue. Strict local parsing has also been updated to better handle definitions that span multiple lines.
Action Pack got some configuration tweaks too, specifically for live streaming via ActionController::Live. You can now use config.action_controller.live_streaming_excluded_keys to manage state keys that shouldn't cross threads.
While Action Mailer didn't get any new features this time around, updates landed in Action Cable and Action Text alongside fixes for Active Storage's GCS signing URLs with IAM using the ADC method (for those who still need to use it).
Release Rails 8.1.2
Active Support Make delegate and delegate_missing_to work in BasicObject subclasses. Rafael Mendonça França Fix Inflectors when using a locale that fallbacks to :en.
