module ActiveSupport::Callbacks::ClassMethods

def reset_callbacks(name)

Remove all set callbacks for the given event.
def reset_callbacks(name)
  callbacks = get_callbacks name
  self.descendants.each do |target|
    chain = target.get_callbacks(name).dup
    callbacks.each { |c| chain.delete(c) }
    target.set_callbacks name, chain
  end
  set_callbacks(name, callbacks.dup.clear)
end