Rails6

Rails destroy_association_async_job Config

Rails no longer ignores the configuration option destroy_association_async_job when destroying objects with destroy_async option.

Rails now serves files via proxy

Rails 6.1 has added support to ActiveStorage that serves files via proxying.

Rails form_with Defaults to Non-Remote

Rails form generation helper, "form_with" defaulted to remote forms previously.

Rails 6.1 Configurable Attribute Defaults

With Rails 6.1, we can set attribute's default value by keeping the type same

Rails support bulk insert/upsert on relation

Rails 6.1 has added support for bulk insert/upsert on relation to preserve scope values.

Rails Parameters each_pair/each_value

Rails ActionController::Parameters each_pair and each_value now returns an enumerator when provided without a block.

Rails 6.1 Adds Signed IDs to Active Record

Rails 6.1 added support for signed ids which are a tamper-proof way of identifying a bearer

Rails 6 perform_enqueued_jobs Without Block

With Rails 6, we can use ActiveJob::TestCase#perform_enqueued_jobs without a block to perform jobs in tests

Rails 6.1 Adds rescue_from to ActionCable

The `rescue_from` on ActionCable::Connection::Base allows us to intercept unhandled exceptions

Rails Adds HTML Template Annotations

Rails 6.1 has added support for adding HTML comments to the rendered output indicating where each template begins and ends.