orbit-basic/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