Skip callbacks

This commit is contained in:
chris2tof 2011-09-01 18:28:04 +08:00
parent 88397d2708
commit a570be1811
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module ActiveSupport::Callbacks::ClassMethods
def without_callback(*args, &block)
skip_callback(*args)
yield
set_callback(*args)
end
end