Hi, Wojtek here. Let’s explore this week’s Rails news.
Rails 8 has been released
Along with the announcement, you can read the release changelog.
Action Controller guide improvements review
Along with the improvements, there will be the new guide “Action Controller Advanced Topics”.
It’s awaiting community feedback.
Support disabling transactional tests per database
A test class can now override the default use_transactional_tests
setting
for individual databases, which can be useful if some databases need their
current state to be accessible to an external process while tests are running.
class MostlyTransactionalTest < ActiveSupport::TestCase
self.use_transactional_tests = true
skip_transactional_tests_for_database :shared
end
Fix running with BACKTRACE=1 truncating gem paths
Restores gem paths back to their original, full form, which makes it easier to debug.
Fix deprecation warning caused by DST
Clarifies the logic for detecting whether the current Time value is in the system local timezone (i.e. that getlocal would be a no-op).
You can view the whole list of changes here. We had 22 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.