QuackatronHQ / Gigarepo

ActiveRecord callback being overridden RB-LI1106
Anti-pattern
Major
1 occurrence in this check
There can only be one after_*_commit :broadcast hook defined for a model.
10
11class Comment < ApplicationRecord
12  after_create_commit  :broadcast
13  after_destroy_commit :broadcast14
15  def broadcast
16    BroadcastJob.perform_later(id)