method
reset_callbacks
v3.1.0 -
Show latest stable
- Class:
ActiveSupport::Callbacks::ClassMethods
reset_callbacks(symbol)public
Remove all set callbacks for the given event.
1Note
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