Method: ActiveRecord::Transactions::ClassMethods#after_create_commit

Defined in:
activerecord/lib/active_record/transactions.rb

#after_create_commit(*args, &block) ⇒ Object

Shortcut for after_commit :hook, on: :create.



244
245
246
247
# File 'activerecord/lib/active_record/transactions.rb', line 244

def after_create_commit(*args, &block)
  set_options_for_callbacks!(args, on: :create, **prepend_option)
  set_callback(:commit, :after, *args, &block)
end