Method: ActiveRecord::Transactions::ClassMethods#after_save_commit
- Defined in:
- activerecord/lib/active_record/transactions.rb
#after_save_commit(*args, &block) ⇒ Object
Shortcut for after_commit :hook, on: [ :create, :update ]
.
238 239 240 241 |
# File 'activerecord/lib/active_record/transactions.rb', line 238 def after_save_commit(*args, &block) (args, on: [ :create, :update ], **prepend_option) set_callback(:commit, :after, *args, &block) end |