orbit-4-2/config/initializers/without_callbacks.rb

7 lines
152 B
Ruby

module ActiveSupport::Callbacks::ClassMethods
def without_callback(*args, &block)
skip_callback(*args)
yield
set_callback(*args)
end
end