Skip callbacks
This commit is contained in:
parent
88397d2708
commit
a570be1811
|
@ -0,0 +1,7 @@
|
||||||
|
module ActiveSupport::Callbacks::ClassMethods
|
||||||
|
def without_callback(*args, &block)
|
||||||
|
skip_callback(*args)
|
||||||
|
yield
|
||||||
|
set_callback(*args)
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue