I have a particularly complex model with validations and callbacks defined. The business needs now calls for a particular scenario where adding a new record requires skipping the validations and callbacks. What's the best way to do this?
This works in Rails 3:
Model.skip_callback(:create) model.save(:validate => false) Model.set_callback(:create)
(API docs and related question)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With