no_touching(&block)
Instance Public methods
Lets you selectively disable calls to `touch` for the duration of a block.
Examples
1 2 3 4 5 6 7 8 9 | ActiveRecord::Base.no_touching do Project.first.touch # does nothing Message.first.touch # does nothing end Project.no_touching do Project.first.touch # does nothing Message.first.touch # works, but does not touch the associated project end |
Please login to continue.