module ActiveRecord::NoTouching::ClassMethods
def no_touching(&block)
end
Message.first.touch # works, but does not touch the associated project
Project.first.touch # does nothing
Project.no_touching do
end
Message.first.touch # does nothing
Project.first.touch # does nothing
ActiveRecord::Base.no_touching do
==== Examples
duration of a block.
Lets you selectively disable calls to +touch+ for the
def no_touching(&block) NoTouching.apply_to(self, &block) end