How to skip all callbacks for all models in Rails
26-Oct-2023 998
Use ActiveRecord::Suppressor, conditional callbacks, or patch ApplicationRecord to skip Rails callbacksTwo things:Skip callbacks if this is a debugging sessionDon't try to skip all callbacks in your business logic or production code. This is a strong hint for refactoring.
How to skip all callbacks for all models in Rails #ruby #rubydeveloper #rubyonrails #callbacks #models #Rails #callbacks https://rubyonrails.ba/link/how-to-skip-all-callbacks-for-all-models-in-rails