This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/config/initializers/without_callbacks.rb

7 lines
152 B
Ruby
Raw Permalink Normal View History

2011-09-01 10:28:04 +00:00
module ActiveSupport::Callbacks::ClassMethods
def without_callback(*args, &block)
skip_callback(*args)
yield
set_callback(*args)
end
end