This week in Rails
Past issues
Jul 19
Jul 31
Jul 23 2021
Active record improvements and much more
Hi,
Wojtek
here presenting quite a lot of changes from the past week.
Disable schema dump per database
Dumping the schema is on by default for all databases in an application. To turn it off for a specific database one can now set
schema_dump: false
in the database config file.
Add change tracking methods for belongs_to associations
Two new methods were added:
association_changed?
and
association_previously_changed?
(assuming an association named
:association
) to Active Record.
Raise error on unpermitted open redirects
Add
allow_other_host
options to
redirect_to
. One can opt in to this behaviour with
ActionController::Base.raise_on_open_redirects = true
.
Update Capybara drivers
Deprecate
poltergeist
and
webkit
(capybara-webkit) driver registration for system testing (they will be removed in Rails 7.1) and add
cuprite
instead.
Fix dirty check for Float::NaN and BigDecimal::NaN
Float::NaN and BigDecimal::NaN in Ruby are special values and can't be compared with
== method.
Make ActiveModel::Errors#inspect slimmer for readability
It will now only output the errors inspection omitting the base object.
Add Middleware#remove
It will raise an error if the middleware is not found.
24 people
contributed to Rails since last time. All the changes can be checked
here.
Until next week!
Previous Issues
Sep 27
Autumn is here, and so is Rails 7 Alpha 2! 🍂
Sep 17
Rails 7 alpha released
Sep 11
Bye-bye Byebug, Hello jsbundling and cssbundling!
Aug 28
Remove default reliance on Sass and more!
Aug 21
Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!
Aug 13
ESM importmap and Marginalia
Aug 8
Active Record goodies and more!
Jul 31
Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!
Jul 23
Active record improvements and much more
Jul 19
Performance and parallel testing improvements and more!
Load More