Flowdock
method

reset_callbacks

Importance_2
Ruby on Rails latest stable (v6.1.7.7) - 2 notes - Class: ActiveSupport::Callbacks::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

These similar methods exist in v6.1.7.7:

reset_callbacks(name) public

Remove all set callbacks for the given event.

Show source
Register or log in to add new notes.
July 28, 2011 - (v3.0.0 - v3.0.9)
0 thanks

sure, but what types are there to chose from?

the ‘symbol’ parameter is not something specific like ‘:after_save’, but rather ‘:save’

I suppose ‘:update’ works as well.

January 31, 2012 - (v3.0.0 - v3.1.0)
0 thanks

undocumented events/symbol/types

@nessur is right: drop the “before_” and “after_” prefixes and you have the possible values for the uninformatively named `symbol` param: create, save, update and validate.

So to remove all validations for a model do: `reset_callbacks :validate`