method
reset_callbacks
v4.2.1 -
Show latest stable
-
2 notes -
Class: ActiveSupport::Callbacks::ClassMethods
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0 (0)
- 3.0.9 (-4)
- 3.1.0 (10)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
Register or
log in
to add new notes.
nessur -
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.
dvdplm -
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`