/
Write
Start a team blog
NEW ✨
Start a team blog, invite your team, and start publishing.
My FeedExploreDraftsBookmarks
Team BlogsNEWRFAs
AboutCareersOfficial Blog

Trending tags
Show more

© 2022 Hashnode

rubyonrails

#rubyonrails

Start Writing
27 Followers·41 Articles
HotNew
Piotr Jurewicz·Dec 1, 2020

ActiveRecord anti-patterns which you should avoid: Part 2. Callbacks

What are they? ActiveRecord callback is a tricky Rails-way method to trigger some code in different phases of persisting model object. Example: class Order < ApplicationRecord before_save :set_total after_commit :send_order_confirmation…

#ruby#ruby-on-rails+1
1
3
Benjamin Silva Herrera
Ruby | Safe Navigation Operator