This week in Rails
Apr 19 2019
Performance improvements, collection cache versioning and more
Hello. This is
reporting on recent changes from Rails world.
Collection cache versioning
on relation to support recyclable cache keys via the versioned entries in
. This also means that
will now return a stable key that does not include the max timestamp or count any more.
Speed up dirty tracking
Reports 2x ~ 30x faster execution time compared to original implementation.
Add dirty methods for store accessors
It is now possible to use methods defined by Dirty module on store accessors.
Add after_save_commit callback shortcut
Adds shortcut for very common case:
after_commit :hook, on: [ :create, :update ].
Notes tags registration
It is now possible to register custom tags that will be included on
Add db:prepare rake task
Based on state of database it runs
Add detach_from to ActiveSupport::Subscriber
It is now possible to opt-out from listening on chosen events.
Factorize bin/update in bin/setup
Replaced two files with one. From now on
should be idempotent in the project, thus should run fine on the first time setup and after any update.
contributed to Rails in the last 3 weeks. You can see the
full list of changes here
Until next time!
Autumn is here, and so is Rails 7 Alpha 2! 🍂
Rails 7 alpha released
Bye-bye Byebug, Hello jsbundling and cssbundling!
Remove default reliance on Sass and more!
Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!
ESM importmap and Marginalia
Active Record goodies and more!
Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!
Active record improvements and much more
Performance and parallel testing improvements and more!