diff --git a/config/initializers/without_callbacks.rb b/config/initializers/without_callbacks.rb new file mode 100644 index 00000000..06ba4e0a --- /dev/null +++ b/config/initializers/without_callbacks.rb @@ -0,0 +1,7 @@ +module ActiveSupport::Callbacks::ClassMethods + def without_callback(*args, &block) + skip_callback(*args) + yield + set_callback(*args) + end +end \ No newline at end of file