Goodbits
Hello. This is Wojtek reporting on recent changes from Rails world.
Add cache_version on relation to support recyclable cache keys via the versioned entries in ActiveSupport::Cache. This also means that cache_key will now return a stable key that does not include the max timestamp or count any more.
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 ].
It is now possible to register custom tags that will be included on bin/rails notes command.
Based on state of database it runs setup or migrate tasks.
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 bin/setup should be idempotent in the project, thus should run fine on the first time setup and after any update.
71 people contributed to Rails in the last 3 weeks. You can see the full list of changes here.
Until next time!
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe
> View in browser