method

reset_callbacks

reset_callbacks(symbol)
public

Reset callbacks for a given type.

2Notes

sure, but what types are there to chose from?

nessur · Jul 28, 2011

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

I suppose ':update' works as well.

undocumented events/symbol/types

dvdplm · Jan 31, 2012

@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